Class: CryptoVal::List
- Inherits:
-
Object
- Object
- CryptoVal::List
- Defined in:
- lib/crypto_val/list.rb
Defined Under Namespace
Classes: CryptoCoinCharts, CryptoCompare
Class Method Summary collapse
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(opts = {}) ⇒ List
constructor
Gets all cryptocurrency name and symbols.
Constructor Details
#initialize(opts = {}) ⇒ List
Gets all cryptocurrency name and symbols
5 6 7 |
# File 'lib/crypto_val/list.rb', line 5 def initialize opts={} @list_klass = opts[:list_klass] || CryptoVal::List::CryptoCompare end |
Class Method Details
.fetch(opts = {}) ⇒ Object
13 14 15 |
# File 'lib/crypto_val/list.rb', line 13 def self.fetch opts={} new(opts).fetch end |
Instance Method Details
#fetch ⇒ Object
9 10 11 |
# File 'lib/crypto_val/list.rb', line 9 def fetch formatted end |