Class: SearchRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/FlightXML2REST.rb

Overview

Search

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(howMany = nil, offset = nil, query = nil) ⇒ SearchRequest

Returns a new instance of SearchRequest.



2245
2246
2247
2248
2249
# File 'lib/FlightXML2REST.rb', line 2245

def initialize(howMany = nil, offset = nil, query = nil)
  @howMany = howMany
  @offset = offset
  @query = query
end

Instance Attribute Details

#howManyObject

Returns the value of attribute howMany.



2244
2245
2246
# File 'lib/FlightXML2REST.rb', line 2244

def howMany
  @howMany
end

#offsetObject

Returns the value of attribute offset.



2244
2245
2246
# File 'lib/FlightXML2REST.rb', line 2244

def offset
  @offset
end

#queryObject

Returns the value of attribute query.



2244
2245
2246
# File 'lib/FlightXML2REST.rb', line 2244

def query
  @query
end

Instance Method Details

#postObject



2250
2251
2252
# File 'lib/FlightXML2REST.rb', line 2250

def post
  "howMany=#@howMany&offset=#@offset&query=#@query"
end