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.
237 238 239 240 241 |
# File 'lib/FlightXML2REST.rb', line 237 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.
236 237 238 |
# File 'lib/FlightXML2REST.rb', line 236 def destination @destination end |
#origin ⇒ Object
Returns the value of attribute origin.
236 237 238 |
# File 'lib/FlightXML2REST.rb', line 236 def origin @origin end |
#reportType ⇒ Object
Returns the value of attribute reportType.
236 237 238 |
# File 'lib/FlightXML2REST.rb', line 236 def reportType @reportType end |
Instance Method Details
#post ⇒ Object
242 243 244 |
# File 'lib/FlightXML2REST.rb', line 242 def post "destination=#@destination&origin=#@origin&reportType=#@reportType" end |