Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 592 Bytes

README.md

File metadata and controls

32 lines (19 loc) · 592 Bytes

tsadata

Gem to work with airport checkpoint wait times from the TSA.

dependencies

nokogiri

classes

TSAdata

pass an airport short code to create

a = TSAdata.new "JFK"

methods

recentwaits

returns a hash containing recent wait times reported for each checkpoint at the airport.

a.recentwaits

TSAreport

pass an array of airport codes to create

b = TSAreport.new ["JFK","EWR","LGA"]

methods

writereport

takes a filename as parameter. Creates a file containing wait times for the checkpoints at the airports.

b.writereport "filename.txt"