Class: AirlineFlightSchedulesRequest
- Inherits:
-
Object
- Object
- AirlineFlightSchedulesRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
AirlineFlightSchedule
Instance Attribute Summary collapse
-
#airline ⇒ Object
Returns the value of attribute airline.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#endDate ⇒ Object
Returns the value of attribute endDate.
-
#flightno ⇒ Object
Returns the value of attribute flightno.
-
#howMany ⇒ Object
Returns the value of attribute howMany.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#startDate ⇒ Object
Returns the value of attribute startDate.
Instance Method Summary collapse
-
#initialize(airline = nil, destination = nil, endDate = nil, flightno = nil, howMany = nil, offset = nil, origin = nil, startDate = nil) ⇒ AirlineFlightSchedulesRequest
constructor
A new instance of AirlineFlightSchedulesRequest.
- #post ⇒ Object
Constructor Details
#initialize(airline = nil, destination = nil, endDate = nil, flightno = nil, howMany = nil, offset = nil, origin = nil, startDate = nil) ⇒ AirlineFlightSchedulesRequest
Returns a new instance of AirlineFlightSchedulesRequest.
127 128 129 130 131 132 133 134 135 136 |
# File 'lib/FlightXML2REST.rb', line 127 def initialize(airline = nil, destination = nil, endDate = nil, flightno = nil, howMany = nil, offset = nil, origin = nil, startDate = nil) @airline = airline @destination = destination @endDate = endDate @flightno = flightno @howMany = howMany @offset = offset @origin = origin @startDate = startDate end |
Instance Attribute Details
#airline ⇒ Object
Returns the value of attribute airline.
126 127 128 |
# File 'lib/FlightXML2REST.rb', line 126 def airline @airline end |
#destination ⇒ Object
Returns the value of attribute destination.
126 127 128 |
# File 'lib/FlightXML2REST.rb', line 126 def destination @destination end |
#endDate ⇒ Object
Returns the value of attribute endDate.
126 127 128 |
# File 'lib/FlightXML2REST.rb', line 126 def endDate @endDate end |
#flightno ⇒ Object
Returns the value of attribute flightno.
126 127 128 |
# File 'lib/FlightXML2REST.rb', line 126 def flightno @flightno end |
#howMany ⇒ Object
Returns the value of attribute howMany.
126 127 128 |
# File 'lib/FlightXML2REST.rb', line 126 def howMany @howMany end |
#offset ⇒ Object
Returns the value of attribute offset.
126 127 128 |
# File 'lib/FlightXML2REST.rb', line 126 def offset @offset end |
#origin ⇒ Object
Returns the value of attribute origin.
126 127 128 |
# File 'lib/FlightXML2REST.rb', line 126 def origin @origin end |
#startDate ⇒ Object
Returns the value of attribute startDate.
126 127 128 |
# File 'lib/FlightXML2REST.rb', line 126 def startDate @startDate end |
Instance Method Details
#post ⇒ Object
137 138 139 |
# File 'lib/FlightXML2REST.rb', line 137 def post "airline=#@airline&destination=#@destination&endDate=#@endDate&flightno=#@flightno&howMany=#@howMany&offset=#@offset&origin=#@origin&startDate=#@startDate" end |