Class: Crypto

Inherits:
Ctfc show all
Defined in:
lib/ctfc.rb

Overview

Same as Ctfc

See Also:

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

Methods inherited from Ctfc

to

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