class Wunderground

Constants

VERSION
WUNDERGROUND_URL

Public Instance Methods

condition() click to toggle source
# File lib/wunderground_thor.rb, line 30
def condition
  current_conditions["condition"]
end
current() click to toggle source
# File lib/wunderground_thor.rb, line 10
def current
  current_conditions
end
feel() click to toggle source
# File lib/wunderground_thor.rb, line 35
def feel
  current_conditions["feel"]
end
high() click to toggle source
# File lib/wunderground_thor.rb, line 40
def high
  current_conditions["high"]
end
image() click to toggle source
# File lib/wunderground_thor.rb, line 20
def image
  current_conditions["image"]
end
location() click to toggle source
# File lib/wunderground_thor.rb, line 15
def location
  current_conditions["location"]
end
low() click to toggle source
# File lib/wunderground_thor.rb, line 45
def low
  current_conditions["low"]
end
temp() click to toggle source
# File lib/wunderground_thor.rb, line 25
def temp
  current_conditions["temp"]
end

Private Instance Methods

current_conditions() click to toggle source
# File lib/wunderground_thor.rb, line 51
def current_conditions
  @_current_conditions ||= Scrapers::Wunderground.scrape(WUNDERGROUND_URL)
end