Class: WeatherInfo::CurrentWeather
- Inherits:
-
ActiveApi::ApiObject
- Object
- ActiveApi::ApiObject
- WeatherInfo::CurrentWeather
- Includes:
- WeatherMethods
- Defined in:
- lib/weather_by_ip/weather.rb
Instance Attribute Summary collapse
-
#humidity ⇒ Object
readonly
Returns the value of attribute humidity.
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#sky ⇒ Object
readonly
Returns the value of attribute sky.
-
#temp_c ⇒ Object
readonly
Returns the value of attribute temp_c.
-
#temp_f ⇒ Object
readonly
Returns the value of attribute temp_f.
-
#wind ⇒ Object
readonly
Returns the value of attribute wind.
Instance Method Summary collapse
Methods included from WeatherMethods
Instance Attribute Details
#humidity ⇒ Object (readonly)
Returns the value of attribute humidity.
39 40 41 |
# File 'lib/weather_by_ip/weather.rb', line 39 def humidity @humidity end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
39 40 41 |
# File 'lib/weather_by_ip/weather.rb', line 39 def icon @icon end |
#sky ⇒ Object (readonly)
Returns the value of attribute sky.
39 40 41 |
# File 'lib/weather_by_ip/weather.rb', line 39 def sky @sky end |
#temp_c ⇒ Object (readonly)
Returns the value of attribute temp_c.
39 40 41 |
# File 'lib/weather_by_ip/weather.rb', line 39 def temp_c @temp_c end |
#temp_f ⇒ Object (readonly)
Returns the value of attribute temp_f.
39 40 41 |
# File 'lib/weather_by_ip/weather.rb', line 39 def temp_f @temp_f end |
#wind ⇒ Object (readonly)
Returns the value of attribute wind.
39 40 41 |
# File 'lib/weather_by_ip/weather.rb', line 39 def wind @wind end |
Instance Method Details
#inspect ⇒ Object
44 45 46 |
# File 'lib/weather_by_ip/weather.rb', line 44 def inspect "Today #{@temp_f}F (#{@temp_c}C), #{@sky}, #{@humidity}, #{@wind}" end |