Class: AirlineInsightRequest
- Inherits:
-
Object
- Object
- AirlineInsightRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
AirlineInsight
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#reportType ⇒ Object
Returns the value of attribute reportType.
Instance Method Summary collapse
-
#initialize(destination = nil, origin = nil, reportType = nil) ⇒ AirlineInsightRequest
constructor
A new instance of AirlineInsightRequest.
- #post ⇒ Object
Constructor Details
#initialize(destination = nil, origin = nil, reportType = nil) ⇒ AirlineInsightRequest
Returns a new instance of AirlineInsightRequest.
265 266 267 268 269 |
# File 'lib/FlightXML2REST.rb', line 265 def initialize(destination = nil, origin = nil, reportType = nil) @destination = destination @origin = origin @reportType = reportType end |
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination.
264 265 266 |
# File 'lib/FlightXML2REST.rb', line 264 def destination @destination end |
#origin ⇒ Object
Returns the value of attribute origin.
264 265 266 |
# File 'lib/FlightXML2REST.rb', line 264 def origin @origin end |
#reportType ⇒ Object
Returns the value of attribute reportType.
264 265 266 |
# File 'lib/FlightXML2REST.rb', line 264 def reportType @reportType end |
Instance Method Details
#post ⇒ Object
270 271 272 |
# File 'lib/FlightXML2REST.rb', line 270 def post "destination=#@destination&origin=#@origin&reportType=#@reportType" end |