Class: WeatherInfo::WeatherForecast
- Inherits:
-
ActiveApi::ApiObject
- Object
- ActiveApi::ApiObject
- WeatherInfo::WeatherForecast
- Includes:
- WeatherMethods
- Defined in:
- lib/weather_by_ip/weather.rb
Instance Attribute Summary collapse
-
#day_of_week ⇒ Object
readonly
Returns the value of attribute day_of_week.
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#sky ⇒ Object
readonly
Returns the value of attribute sky.
-
#temp_high ⇒ Object
readonly
Returns the value of attribute temp_high.
-
#temp_low ⇒ Object
readonly
Returns the value of attribute temp_low.
Instance Method Summary collapse
Methods included from WeatherMethods
Instance Attribute Details
#day_of_week ⇒ Object (readonly)
Returns the value of attribute day_of_week.
53 54 55 |
# File 'lib/weather_by_ip/weather.rb', line 53 def day_of_week @day_of_week end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
53 54 55 |
# File 'lib/weather_by_ip/weather.rb', line 53 def icon @icon end |
#sky ⇒ Object (readonly)
Returns the value of attribute sky.
53 54 55 |
# File 'lib/weather_by_ip/weather.rb', line 53 def sky @sky end |
#temp_high ⇒ Object (readonly)
Returns the value of attribute temp_high.
53 54 55 |
# File 'lib/weather_by_ip/weather.rb', line 53 def temp_high @temp_high end |
#temp_low ⇒ Object (readonly)
Returns the value of attribute temp_low.
53 54 55 |
# File 'lib/weather_by_ip/weather.rb', line 53 def temp_low @temp_low end |
Instance Method Details
#inspect ⇒ Object
59 60 61 |
# File 'lib/weather_by_ip/weather.rb', line 59 def inspect "#{@day_of_week} low #{@temp_low}, high #{@temp_high}, #{@sky}" end |