Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Library to return fares from the Kayak Search Gateway using Mechanize.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Guardfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 kayakfares.gemspec
Octocat-spinner-32 rakefile.rb
README.md

KayakFares

Library to return fares from the Kayak Search Gateway using Mechanize.

Usage

Search for fares:

require 'kayakfares'

params = {:from => "SBN", :to => "VRN", :depart => "5/15/2012", :return => "5/20/2012"}
search = KayakFares.new(params)

search.results[0].price
=> $1240

search.results[0].airline
=> United

search.results[0].leg0_departure_time
=> 7:44p

search.results[0].leg0_arrival_time
=> 10:35p

search.results[0].leg0_duration
=> 20h 51m

search.results[0].leg1_departure_time
=> 6:55a

search.results[0].leg1_arrival_time
=> 11:26p

search.results[0].leg1_duration
=> 22h 31m

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so we don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine, but bump version in a commit by itself so we can ignore when we pull)
  • Send us a pull request. Bonus points for topic branches.
Something went wrong with that request. Please try again.