Module: CoinMarketCap::Api::Config::Logger::Accessor

Included in:
CoinMarketCap::Api, Client
Defined in:
lib/coinmarketcap/api/config/logger.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



22
23
24
# File 'lib/coinmarketcap/api/config/logger.rb', line 22

def logger
  block_given? ? yield(Config::Logger) : Config::Logger
end

#logger=(instance) ⇒ Object



26
27
28
# File 'lib/coinmarketcap/api/config/logger.rb', line 26

def logger=(instance)
  logger.instance = instance
end