Class: DepartedRequest

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

Overview

Departed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(airport = nil, filter = nil, howMany = nil, offset = nil) ⇒ DepartedRequest

Returns a new instance of DepartedRequest.



723
724
725
726
727
728
# File 'lib/FlightXML2REST.rb', line 723

def initialize(airport = nil, filter = nil, howMany = nil, offset = nil)
  @airport = airport
  @filter = filter
  @howMany = howMany
  @offset = offset
end

Instance Attribute Details

#airportObject

Returns the value of attribute airport.



722
723
724
# File 'lib/FlightXML2REST.rb', line 722

def airport
  @airport
end

#filterObject

Returns the value of attribute filter.



722
723
724
# File 'lib/FlightXML2REST.rb', line 722

def filter
  @filter
end

#howManyObject

Returns the value of attribute howMany.



722
723
724
# File 'lib/FlightXML2REST.rb', line 722

def howMany
  @howMany
end

#offsetObject

Returns the value of attribute offset.



722
723
724
# File 'lib/FlightXML2REST.rb', line 722

def offset
  @offset
end

Instance Method Details

#postObject



729
730
731
# File 'lib/FlightXML2REST.rb', line 729

def post
  "airport=#@airport&filter=#@filter&howMany=#@howMany&offset=#@offset"
end