Class: WeatherInfo::WeatherForecast

Inherits:
ActiveApi::ApiObject
  • Object
show all
Includes:
WeatherMethods
Defined in:
lib/weather_by_ip/weather.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from WeatherMethods

#get_icon_path, #to_s

Instance Attribute Details

#day_of_weekObject (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

#iconObject (readonly)

Returns the value of attribute icon.



53
54
55
# File 'lib/weather_by_ip/weather.rb', line 53

def icon
  @icon
end

#skyObject (readonly)

Returns the value of attribute sky.



53
54
55
# File 'lib/weather_by_ip/weather.rb', line 53

def sky
  @sky
end

#temp_highObject (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_lowObject (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

#inspectObject



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