Class: AirlineInsightRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/FlightXML2REST.rb

Overview

AirlineInsight

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#destinationObject

Returns the value of attribute destination.



264
265
266
# File 'lib/FlightXML2REST.rb', line 264

def destination
  @destination
end

#originObject

Returns the value of attribute origin.



264
265
266
# File 'lib/FlightXML2REST.rb', line 264

def origin
  @origin
end

#reportTypeObject

Returns the value of attribute reportType.



264
265
266
# File 'lib/FlightXML2REST.rb', line 264

def reportType
  @reportType
end

Instance Method Details

#postObject



270
271
272
# File 'lib/FlightXML2REST.rb', line 270

def post
  "destination=#@destination&origin=#@origin&reportType=#@reportType"
end