Class: Kayak::FlightSearch
Instance Attribute Summary
Attributes inherited from Search
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ FlightSearch
constructor
A new instance of FlightSearch.
- #to_search_params ⇒ Object
Constructor Details
#initialize(attrs = {}) ⇒ FlightSearch
Returns a new instance of FlightSearch.
16 17 18 |
# File 'lib/kayak/flight_search.rb', line 16 def initialize(attrs = {}) super({:oneway => false, :travelers => 1, :cabin => 'e'}.merge(attrs)) end |
Instance Method Details
#to_search_params ⇒ Object
20 21 22 |
# File 'lib/kayak/flight_search.rb', line 20 def to_search_params attributes.merge(:action => 'doFlights') end |