Class: Kayak::FlightSearch

Inherits:
Search
  • Object
show all
Defined in:
lib/kayak/flight_search.rb

Instance Attribute Summary

Attributes inherited from Search

#attributes

Instance Method Summary collapse

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_paramsObject



20
21
22
# File 'lib/kayak/flight_search.rb', line 20

def to_search_params
  attributes.merge(:action => 'doFlights')
end