JetBlue Plane Tracker
A Ruby wrapper for JetBlue flights status tracker.
Installation
Install the gem via the CLI
gem install jetblue_plane_tracker
or
Just add the following into your Gemfile and run bundle
.
gem 'jetblue_plane_tracker'
Usage
Instantiate the tracker
jbtracker = JetBluePlaneTracker::Tracker.new
Get a flight status by the departure and arrival city and its date:
flights = jbtracker.flight_status(origin: "SFO", destination: "JFK", date: "2015-07-31")
Get a flight status by the flight number and its date:
flights = jbtracker.flight_status(flight: 37, date: "2015-07-29")
Suggestions
- Date Format is
yyyy-mm-dd
- Permited params are:
- origin
- destination
- date
- flight
- date
- Params origin and destination are valid IATA airport codes