Class: Crypto
- Inherits:
-
Ctfc
- Object
- CTFC::Data
- Ctfc
- Crypto
- Defined in:
- lib/ctfc.rb
Overview
Same as Ctfc
Constant Summary
Constants included from CTFC::CONFIG
CTFC::CONFIG::COINS, CTFC::CONFIG::MAX_RETRY, CTFC::CONFIG::URL
Instance Attribute Summary
Attributes inherited from CTFC::Data
#coins, #count, #data, #fiat, #prices, #response, #table, #url
Instance Method Summary collapse
-
#initialize(currency = :eur, opts = {}) ⇒ Crypto
constructor
A new instance of Crypto.
Methods inherited from Ctfc
Methods inherited from CTFC::Data
#get, #price, #print=, #print?, #save=, #save?, #success?
Constructor Details
#initialize(currency = :eur, opts = {}) ⇒ Crypto
Returns a new instance of Crypto.
45 46 47 48 |
# File 'lib/ctfc.rb', line 45 def initialize(currency = :eur, opts = {}) opts[:coins] ||= COINS super(currency, opts) end |