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.



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

#destinationObject

Returns the value of attribute destination.



236
237
238
# File 'lib/FlightXML2REST.rb', line 236

def destination
  @destination
end

#originObject

Returns the value of attribute origin.



236
237
238
# File 'lib/FlightXML2REST.rb', line 236

def origin
  @origin
end

#reportTypeObject

Returns the value of attribute reportType.



236
237
238
# File 'lib/FlightXML2REST.rb', line 236

def reportType
  @reportType
end

Instance Method Details

#postObject



242
243
244
# File 'lib/FlightXML2REST.rb', line 242

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