class Sundown::Weather
Used to get weather information without caching, fire queries everytime.
Public Class Methods
temperature(location, degree = 'f')
click to toggle source
# File lib/sundown/weather.rb, line 9 def self.temperature(location, degree = 'f') location = Location.new(location) if degree == 'f' location.temperature else location.temperature('c') end end
timestamp(location)
click to toggle source
# File lib/sundown/weather.rb, line 18 def self.timestamp(location) location = Location.new(location) location.timestamp end