Class: GoogleWeather::Current
- Inherits:
-
Object
- Object
- GoogleWeather::Current
- Defined in:
- lib/gwx/current_conditions.rb
Instance Attribute Summary collapse
-
#condition ⇒ Object
Returns the value of attribute condition.
-
#current_conditions ⇒ Object
Returns the value of attribute current_conditions.
-
#humidity ⇒ Object
Returns the value of attribute humidity.
-
#icon ⇒ Object
Returns the value of attribute icon.
-
#temp_c ⇒ Object
Returns the value of attribute temp_c.
-
#temp_f ⇒ Object
Returns the value of attribute temp_f.
-
#wind_condition ⇒ Object
Returns the value of attribute wind_condition.
Instance Method Summary collapse
-
#initialize(wx) ⇒ Current
constructor
A new instance of Current.
Constructor Details
#initialize(wx) ⇒ Current
Returns a new instance of Current.
5 6 7 |
# File 'lib/gwx/current_conditions.rb', line 5 def initialize(wx) @current_conditions = wx["current_conditions"] end |
Instance Attribute Details
#condition ⇒ Object
Returns the value of attribute condition.
2 3 4 |
# File 'lib/gwx/current_conditions.rb', line 2 def condition @condition end |
#current_conditions ⇒ Object
Returns the value of attribute current_conditions.
2 3 4 |
# File 'lib/gwx/current_conditions.rb', line 2 def current_conditions @current_conditions end |
#humidity ⇒ Object
Returns the value of attribute humidity.
2 3 4 |
# File 'lib/gwx/current_conditions.rb', line 2 def humidity @humidity end |
#icon ⇒ Object
Returns the value of attribute icon.
2 3 4 |
# File 'lib/gwx/current_conditions.rb', line 2 def icon @icon end |
#temp_c ⇒ Object
Returns the value of attribute temp_c.
2 3 4 |
# File 'lib/gwx/current_conditions.rb', line 2 def temp_c @temp_c end |
#temp_f ⇒ Object
Returns the value of attribute temp_f.
2 3 4 |
# File 'lib/gwx/current_conditions.rb', line 2 def temp_f @temp_f end |
#wind_condition ⇒ Object
Returns the value of attribute wind_condition.
2 3 4 |
# File 'lib/gwx/current_conditions.rb', line 2 def wind_condition @wind_condition end |