Class: ForexRateAPI::Client
- Inherits:
-
Object
- Object
- ForexRateAPI::Client
- Includes:
- Connection, Endpoints, Request
- Defined in:
- lib/forexrateapi/client.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Endpoints
#change, #convert, #fetchHistorical, #fetchLive, #fetchSymbols, #timeframe
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
11 12 13 14 15 16 |
# File 'lib/forexrateapi/client.rb', line 11 def initialize( = {}) ForexRateAPI::Config::ATTRIBUTES.each do |key| send("#{key}=", [key] || ForexRateAPI.config.send(key)) end @logger ||= ForexRateAPI::Logger.logger end |