Class: CryptocoinFanboiPlus
- Inherits:
-
CryptocoinFanboi
- Object
- CryptocoinFanboi
- CryptocoinFanboiPlus
- Defined in:
- lib/cryptocoin_fanboi.rb
Instance Attribute Summary
Attributes inherited from CryptocoinFanboi
Instance Method Summary collapse
-
#initialize(regx, watch: [], ignore: [], colored: true, debug: false, filepath: '.') ⇒ CryptocoinFanboiPlus
constructor
A new instance of CryptocoinFanboiPlus.
Methods inherited from CryptocoinFanboi
#best_coin, #btc_gain, #btc_price, #coin, #coin_abbreviations, #coin_names, #date_range, #find, #inspect, #now, #past_60d, #past_90d, #price, #prices_this_year, #rates, #this_month, #this_week, #this_year, #to_html, #to_s, #today, #total_market_cap
Methods included from Colour
Constructor Details
#initialize(regx, watch: [], ignore: [], colored: true, debug: false, filepath: '.') ⇒ CryptocoinFanboiPlus
Returns a new instance of CryptocoinFanboiPlus.
592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 |
# File 'lib/cryptocoin_fanboi.rb', line 592 def initialize(regx, watch: [], ignore: [], colored: true, debug: false, filepath: '.') reg = if regx.is_a? String then RemoteDwsRegistry.new domain: regx else regx end exchangerate_key = JustExchangeRatesPlus.fetch_app_id(reg) puts 'exchangerate_key:' + exchangerate_key.inspect if debug cmc_apikey = CoinmarketcapLitePlus.fetch_apikey(reg) puts 'cmc_apikey: ' + cmc_apikey.inspect if debug super(watch: watch, ignore: ignore, colored: colored, debug: debug, filepath: filepath, exchangerate_key: exchangerate_key, cmc_apikey: cmc_apikey) end |