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.



645
646
647
648
649
650
# File 'lib/FlightXML2REST.rb', line 645

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.



644
645
646
# File 'lib/FlightXML2REST.rb', line 644

def airport
  @airport
end

#filterObject

Returns the value of attribute filter.



644
645
646
# File 'lib/FlightXML2REST.rb', line 644

def filter
  @filter
end

#howManyObject

Returns the value of attribute howMany.



644
645
646
# File 'lib/FlightXML2REST.rb', line 644

def howMany
  @howMany
end

#offsetObject

Returns the value of attribute offset.



644
645
646
# File 'lib/FlightXML2REST.rb', line 644

def offset
  @offset
end

Instance Method Details

#postObject



651
652
653
# File 'lib/FlightXML2REST.rb', line 651

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