Module: CoinMarketCap::Api::Config::Client
- Extended by:
- Logger::Accessor
- Defined in:
- lib/coinmarketcap/api/config/client.rb
Defined Under Namespace
Modules: Accessor
Constant Summary collapse
- ATTRIBUTES =
%i[ endpoint api_key user_agent ].freeze
Class Method Summary collapse
Methods included from Logger::Accessor
Class Method Details
.reset! ⇒ Object
16 17 18 19 20 |
# File 'lib/coinmarketcap/api/config/client.rb', line 16 def reset! self.endpoint = 'https://pro-api.coinmarketcap.com/v1' self.api_key = ENV['COINMARKETCAP_API_KEY'] self.user_agent = "CoinMarketCap Ruby Client/#{CoinMarketCap::VERSION}" end |