Class: DepartedRequest
- Inherits:
-
Object
- Object
- DepartedRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
Departed
Instance Attribute Summary collapse
-
#airport ⇒ Object
Returns the value of attribute airport.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#howMany ⇒ Object
Returns the value of attribute howMany.
-
#offset ⇒ Object
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(airport = nil, filter = nil, howMany = nil, offset = nil) ⇒ DepartedRequest
constructor
A new instance of DepartedRequest.
- #post ⇒ Object
Constructor Details
#initialize(airport = nil, filter = nil, howMany = nil, offset = nil) ⇒ DepartedRequest
Returns a new instance of DepartedRequest.
723 724 725 726 727 728 |
# File 'lib/FlightXML2REST.rb', line 723 def initialize(airport = nil, filter = nil, howMany = nil, offset = nil) @airport = airport @filter = filter @howMany = howMany @offset = offset end |
Instance Attribute Details
#airport ⇒ Object
Returns the value of attribute airport.
722 723 724 |
# File 'lib/FlightXML2REST.rb', line 722 def airport @airport end |
#filter ⇒ Object
Returns the value of attribute filter.
722 723 724 |
# File 'lib/FlightXML2REST.rb', line 722 def filter @filter end |
#howMany ⇒ Object
Returns the value of attribute howMany.
722 723 724 |
# File 'lib/FlightXML2REST.rb', line 722 def howMany @howMany end |
#offset ⇒ Object
Returns the value of attribute offset.
722 723 724 |
# File 'lib/FlightXML2REST.rb', line 722 def offset @offset end |
Instance Method Details
#post ⇒ Object
729 730 731 |
# File 'lib/FlightXML2REST.rb', line 729 def post "airport=#@airport&filter=#@filter&howMany=#@howMany&offset=#@offset" end |