Class: Rubitcoin

Inherits:
Object
  • Object
show all
Defined in:
lib/rubitcoin.rb,
lib/rubitcoin/version.rb

Constant Summary collapse

END_POINT =
"https://btc-e.com/api/3/ticker"
VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.fetch(currency = :usd) ⇒ Object



7
8
9
# File 'lib/rubitcoin.rb', line 7

def fetch(currency=:usd)
  Hash.[] raw_fetch(currency).map { |k, v| [k.to_sym, v.to_f] }
end