Class: SearchRequest
- Inherits:
-
Object
- Object
- SearchRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
Search
Instance Attribute Summary collapse
-
#howMany ⇒ Object
Returns the value of attribute howMany.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#query ⇒ Object
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(howMany = nil, offset = nil, query = nil) ⇒ SearchRequest
constructor
A new instance of SearchRequest.
- #post ⇒ Object
Constructor Details
#initialize(howMany = nil, offset = nil, query = nil) ⇒ SearchRequest
Returns a new instance of SearchRequest.
2049 2050 2051 2052 2053 |
# File 'lib/FlightXML2REST.rb', line 2049 def initialize(howMany = nil, offset = nil, query = nil) @howMany = howMany @offset = offset @query = query end |
Instance Attribute Details
#howMany ⇒ Object
Returns the value of attribute howMany.
2048 2049 2050 |
# File 'lib/FlightXML2REST.rb', line 2048 def howMany @howMany end |
#offset ⇒ Object
Returns the value of attribute offset.
2048 2049 2050 |
# File 'lib/FlightXML2REST.rb', line 2048 def offset @offset end |
#query ⇒ Object
Returns the value of attribute query.
2048 2049 2050 |
# File 'lib/FlightXML2REST.rb', line 2048 def query @query end |
Instance Method Details
#post ⇒ Object
2054 2055 2056 |
# File 'lib/FlightXML2REST.rb', line 2054 def post "howMany=#@howMany&offset=#@offset&query=#@query" end |