Class: CoinMarketCap::Api::Client
- Inherits:
-
Object
- Object
- CoinMarketCap::Api::Client
- Includes:
- Cloud::Connection, Cloud::Request, Endpoints::Cryptocurrency
- Defined in:
- lib/coinmarketcap/api/client.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Cloud::Request
Methods included from Endpoints::Cryptocurrency
#info, #listings_latest, #map, #quotes_latest
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
16 17 18 19 20 21 22 |
# File 'lib/coinmarketcap/api/client.rb', line 16 def initialize( = {}) Config::Client::ATTRIBUTES.each do |key| send("#{key}=", [key] || CoinMarketCap::Api.config.send(key)) end @logger = Config::Logger.dup @logger.instance = [:logger] if .key?(:logger) end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
14 15 16 |
# File 'lib/coinmarketcap/api/client.rb', line 14 def logger @logger end |