Class: Rubitcoin
- Inherits:
-
Object
- Object
- Rubitcoin
- Defined in:
- lib/rubitcoin.rb,
lib/rubitcoin/version.rb
Constant Summary collapse
- END_POINT =
"https://btc-e.com/api/3/ticker"- ATTRIBUTES =
%w|high low avg vol vol_cur last buy sell updated|- VERSION =
"0.0.4"
Class Method Summary collapse
- .fetch(currency = :usd) ⇒ Object (also: call)
Class Method Details
.fetch(currency = :usd) ⇒ Object Also known as: call
9 10 11 |
# File 'lib/rubitcoin.rb', line 9 def fetch(currency=:usd) Hash.[] raw_fetch(currency).map { |k, v| [k.to_sym, v.to_f] } end |