Method: Forecasting::Client#initialize
- Defined in:
- lib/forecasting/client.rb
#initialize(access_token: ENV['FORECAST_ACCESS_TOKEN'], account_id: ENV['FORECAST_ACCOUNT_ID'], host: DEFAULT_HOST) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 16 |
# File 'lib/forecasting/client.rb', line 10 def initialize(access_token: ENV['FORECAST_ACCESS_TOKEN'], account_id: ENV['FORECAST_ACCOUNT_ID'], host: DEFAULT_HOST) @access_token = access_token @account_id = account_id @host = host end |