Class: OpenWeather::Configuration
- Inherits:
-
Object
- Object
- OpenWeather::Configuration
- Defined in:
- lib/open_weather/Configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#weather_base_uri ⇒ Object
Returns the value of attribute weather_base_uri.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/open_weather/Configuration.rb', line 5 def initialize @api_key = nil @weather_base_uri = 'https://api.openweathermap.org/data/2.5/weather?' end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/open_weather/Configuration.rb', line 3 def api_key @api_key end |
#weather_base_uri ⇒ Object
Returns the value of attribute weather_base_uri.
3 4 5 |
# File 'lib/open_weather/Configuration.rb', line 3 def weather_base_uri @weather_base_uri end |