Module: Forecast::IO::Configuration
- Included in:
- Forecast::IO
- Defined in:
- lib/forecast_io/configuration.rb
Constant Summary collapse
- DEFAULT_FORECAST_IO_API_ENDPOINT =
Default API endpoint
'https://api.forecast.io'
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
API endpoint.
-
#api_key ⇒ Object
API key.
Instance Method Summary collapse
-
#configure {|_self| ... } ⇒ Object
Yield self to be able to configure Forecast::IO with block-style configuration.
Instance Attribute Details
#api_endpoint ⇒ Object
API endpoint
25 26 27 |
# File 'lib/forecast_io/configuration.rb', line 25 def api_endpoint @api_endpoint ||= DEFAULT_FORECAST_IO_API_ENDPOINT end |
#api_key ⇒ Object
API key
30 31 32 |
# File 'lib/forecast_io/configuration.rb', line 30 def api_key @api_key end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
20 21 22 |
# File 'lib/forecast_io/configuration.rb', line 20 def configure yield self end |