Class: AirlineFlightSchedulesRequest

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

Overview

AirlineFlightSchedule

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#airlineObject

Returns the value of attribute airline.



126
127
128
# File 'lib/FlightXML2REST.rb', line 126

def airline
  @airline
end

#destinationObject

Returns the value of attribute destination.



126
127
128
# File 'lib/FlightXML2REST.rb', line 126

def destination
  @destination
end

#endDateObject

Returns the value of attribute endDate.



126
127
128
# File 'lib/FlightXML2REST.rb', line 126

def endDate
  @endDate
end

#flightnoObject

Returns the value of attribute flightno.



126
127
128
# File 'lib/FlightXML2REST.rb', line 126

def flightno
  @flightno
end

#howManyObject

Returns the value of attribute howMany.



126
127
128
# File 'lib/FlightXML2REST.rb', line 126

def howMany
  @howMany
end

#offsetObject

Returns the value of attribute offset.



126
127
128
# File 'lib/FlightXML2REST.rb', line 126

def offset
  @offset
end

#originObject

Returns the value of attribute origin.



126
127
128
# File 'lib/FlightXML2REST.rb', line 126

def origin
  @origin
end

#startDateObject

Returns the value of attribute startDate.



126
127
128
# File 'lib/FlightXML2REST.rb', line 126

def startDate
  @startDate
end

Instance Method Details

#postObject



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