Class: ScheduledRequest

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

Overview

Scheduled

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ScheduledRequest.



2160
2161
2162
2163
2164
2165
# File 'lib/FlightXML2REST.rb', line 2160

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.



2159
2160
2161
# File 'lib/FlightXML2REST.rb', line 2159

def airport
  @airport
end

#filterObject

Returns the value of attribute filter.



2159
2160
2161
# File 'lib/FlightXML2REST.rb', line 2159

def filter
  @filter
end

#howManyObject

Returns the value of attribute howMany.



2159
2160
2161
# File 'lib/FlightXML2REST.rb', line 2159

def howMany
  @howMany
end

#offsetObject

Returns the value of attribute offset.



2159
2160
2161
# File 'lib/FlightXML2REST.rb', line 2159

def offset
  @offset
end

Instance Method Details

#postObject



2166
2167
2168
# File 'lib/FlightXML2REST.rb', line 2166

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