Class: AirportInfoRequest

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

Overview

AirportInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(airportCode = nil) ⇒ AirportInfoRequest

Returns a new instance of AirportInfoRequest.



369
370
371
# File 'lib/FlightXML2REST.rb', line 369

def initialize(airportCode = nil)
  @airportCode = airportCode
end

Instance Attribute Details

#airportCodeObject

Returns the value of attribute airportCode.



368
369
370
# File 'lib/FlightXML2REST.rb', line 368

def airportCode
  @airportCode
end

Instance Method Details

#postObject



372
373
374
# File 'lib/FlightXML2REST.rb', line 372

def post
  "airportCode=#@airportCode"
end