Class: OpenWeather::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/open_weather/Configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

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_uriObject

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