Class: WeatherGemKg::Configuration
- Inherits:
-
Object
- Object
- WeatherGemKg::Configuration
- Defined in:
- lib/weather_gem_kg/config.rb
Instance Attribute Summary collapse
- #client ⇒ Object
-
#default_days ⇒ Object
Returns the value of attribute default_days.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
24 25 26 27 |
# File 'lib/weather_gem_kg/config.rb', line 24 def initialize @default_days = 1 @client = nil end |
Instance Attribute Details
#client ⇒ Object
29 30 31 |
# File 'lib/weather_gem_kg/config.rb', line 29 def client @client ||= Clients::OpenMeteo.new end |
#default_days ⇒ Object
Returns the value of attribute default_days.
22 23 24 |
# File 'lib/weather_gem_kg/config.rb', line 22 def default_days @default_days end |