Class: VfrUtils::TAF

Inherits:
BaseService show all
Defined in:
lib/vfr_utils/taf.rb

Constant Summary collapse

URL =
'http://aviationweather.gov/taf/data'

Class Method Summary collapse

Methods inherited from BaseService

get, inherited

Class Method Details

.get_one(icao_code) ⇒ Object


13
14
15
16
17
18
# File 'lib/vfr_utils/taf.rb', line 13

def get_one(icao_code)
  return cache.get("taf_#{icao_code}") do
    html = fetch_from_web(icao_code)
    parse(html)
  end
end