class Redlink::Weather
Attributes
condition[RW]
humidity[RW]
is_defined[RW]
is_valid[RW]
phrase_key[RW]
temp_unit[RW]
temperature[RW]
Public Instance Methods
humidity=(val)
click to toggle source
# File lib/redlink/weather.rb, line 19 def humidity=(val) @humidity = val.to_f end
temperature=(val)
click to toggle source
# File lib/redlink/weather.rb, line 15 def temperature=(val) @temperature = val.to_f end
to_s()
click to toggle source
# File lib/redlink/weather.rb, line 7 def to_s if is_defined && is_valid "#{temperature.to_i}° #{condition}" else "" end end