class FlightXML2REST
Constants
- DefaultEndpointUrl
Attributes
apiKey[RW]
endpoint_url[RW]
username[RW]
Public Class Methods
new(username, apiKey, endpoint_url = nil)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 9 def initialize(username, apiKey, endpoint_url = nil) endpoint_url ||= DefaultEndpointUrl $api = RestClient::Resource.new(endpoint_url, username, apiKey) end
Public Instance Methods
AircraftType(aircraftTypeRequest)
click to toggle source
Methods
# File lib/FlightXML2RESTDriver.rb, line 15 def AircraftType(aircraftTypeRequest) @aircraftTypeResult = AircraftTypeResults.new($api['AircraftType'].post aircraftTypeRequest.post, :content_type => "application/x-www-form-urlencoded") end
AirlineFlightInfo(airlineFlightInfoRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 19 def AirlineFlightInfo(airlineFlightInfoRequest) @airlineFlightInfoResult = AirlineFlightInfoResults.new($api['AirlineFlightInfo'].post airlineFlightInfoRequest.post, :content_type => "application/x-www-form-urlencoded") end
AirlineFlightSchedules(airlineFlightSchedulesRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 23 def AirlineFlightSchedules(airlineFlightSchedulesRequest) @airlineFlightSchedulesResult = AirlineFlightSchedulesResults.new($api['AirlineFlightSchedules'].post airlineFlightSchedulesRequest.post, :content_type => "application/x-www-form-urlencoded") end
AirlineInfo(airlineInfoRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 27 def AirlineInfo(airlineInfoRequest) @airlineInfoResult = AirlineInfoResults.new($api['AirlineInfo'].post airlineInfoRequest.post, :content_type => "application/x-www-form-urlencoded") end
AirlineInsight(airlineInsightRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 31 def AirlineInsight(airlineInsightRequest) @airlineInsightResult = AirlineInsightResults.new($api['AirlineInsight'].post airlineInsightRequest.post, :content_type => "application/x-www-form-urlencoded") end
AirportInfo(airportInfoRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 35 def AirportInfo(airportInfoRequest) @airportInfoResult = AirportInfoResults.new($api['AirportInfo'].post airportInfoRequest.post, :content_type => "application/x-www-form-urlencoded") end
AllAirlines(allAirlinesRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 39 def AllAirlines(allAirlinesRequest) @allAirlinesResult = AllAirlinesResults.new($api['AllAirlines'].post allAirlinesRequest.post, :content_type => "application/x-www-form-urlencoded") end
AllAirports(allAirportsRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 43 def AllAirports(allAirportsRequest) @allAirportsResult = AllAirportsResults.new($api['AllAirports'].post allAirportsRequest.post, :content_type => "application/x-www-form-urlencoded") end
Arrived(arrivedRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 47 def Arrived(arrivedRequest) @arrivedResult = ArrivedResults.new($api['Arrived'].post arrivedRequest.post, :content_type => "application/x-www-form-urlencoded") end
BlockIdentCheck(blockIdentCheckRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 51 def BlockIdentCheck(blockIdentCheckRequest) @blockIdentCheckResult = BlockIdentCheckResults.new($api['BlockIdentCheck'].post blockIdentCheckRequest.post, :content_type => "application/x-www-form-urlencoded") end
CountAirportOperations(countAirportOperationsRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 55 def CountAirportOperations(countAirportOperationsRequest) @countAirportOperationsResult = CountAirportOperationsResults.new($api['CountAirportOperations'].post countAirportOperationsRequest.post, :content_type => "application/x-www-form-urlencoded") end
CountAllEnrouteAirlineOperations(countAllEnrouteAirlineOperationsRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 59 def CountAllEnrouteAirlineOperations(countAllEnrouteAirlineOperationsRequest) @countAllEnrouteAirlineOperationsResult = CountAllEnrouteAirlineOperationsResults.new($api['CountAllEnrouteAirlineOperations'].post countAllEnrouteAirlineOperationsRequest.post, :content_type => "application/x-www-form-urlencoded") end
DecodeFlightRoute(decodeFlightRouteRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 63 def DecodeFlightRoute(decodeFlightRouteRequest) @decodeFlightRouteResult = DecodeFlightRouteResults.new($api['DecodeFlightRoute'].post decodeFlightRouteRequest.post, :content_type => "application/x-www-form-urlencoded") end
DecodeRoute(decodeRouteRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 67 def DecodeRoute(decodeRouteRequest) @decodeRouteResult = DecodeRouteResults.new($api['DecodeRoute'].post decodeRouteRequest.post, :content_type => "application/x-www-form-urlencoded") end
DeleteAlert(deleteAlertRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 71 def DeleteAlert(deleteAlertRequest) @deleteAlertResult = DeleteAlertResults.new($api['DeleteAlert'].post deleteAlertRequest.post, :content_type => "application/x-www-form-urlencoded") end
Departed(departedRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 75 def Departed(departedRequest) @departedResult = DepartedResults.new($api['Departed'].post departedRequest.post, :content_type => "application/x-www-form-urlencoded") end
Enroute(enrouteRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 79 def Enroute(enrouteRequest) @enrouteResult = EnrouteResults.new($api['Enroute'].post enrouteRequest.post, :content_type => "application/x-www-form-urlencoded") end
FleetArrived(fleetArrivedRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 83 def FleetArrived(fleetArrivedRequest) @fleetArrivedResult = FleetArrivedResults.new($api['FleetArrived'].post fleetArrivedRequest.post, :content_type => "application/x-www-form-urlencoded") end
FleetScheduled(fleetScheduledRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 87 def FleetScheduled(fleetScheduledRequest) @fleetScheduledResult = FleetScheduledResults.new($api['FleetScheduled'].post fleetScheduledRequest.post, :content_type => "application/x-www-form-urlencoded") end
FlightInfo(flightInfoRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 91 def FlightInfo(flightInfoRequest) @flightInfoResult = FlightInfoResults.new($api['FlightInfo'].post flightInfoRequest.post, :content_type => "application/x-www-form-urlencoded") end
FlightInfoEx(flightInfoExRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 95 def FlightInfoEx(flightInfoExRequest) @flightInfoExResult = FlightInfoExResults.new($api['FlightInfoEx'].post flightInfoExRequest.post, :content_type => "application/x-www-form-urlencoded") end
GetAlerts(getAlertsRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 99 def GetAlerts(getAlertsRequest) @getAlertsResult = GetAlertsResults.new($api['GetAlerts'].post getAlertsRequest.post, :content_type => "application/x-www-form-urlencoded") end
GetFlightID(getFlightIDRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 103 def GetFlightID(getFlightIDRequest) @getFlightIDResult = GetFlightIDResults.new($api['GetFlightID'].post getFlightIDRequest.post, :content_type => "application/x-www-form-urlencoded") end
GetHistoricalTrack(getHistoricalTrackRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 107 def GetHistoricalTrack(getHistoricalTrackRequest) @getHistoricalTrackResult = GetHistoricalTrackResults.new($api['GetHistoricalTrack'].post getHistoricalTrackRequest.post, :content_type => "application/x-www-form-urlencoded") end
GetLastTrack(getLastTrackRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 111 def GetLastTrack(getLastTrackRequest) @getLastTrackResult = GetLastTrackResults.new($api['GetLastTrack'].post getLastTrackRequest.post, :content_type => "application/x-www-form-urlencoded") end
InFlightInfo(inFlightInfoRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 119 def InFlightInfo(inFlightInfoRequest) @inFlightInfoResult = InFlightInfoResults.new($api['InFlightInfo'].post inFlightInfoRequest.post, :content_type => "application/x-www-form-urlencoded") end
InboundFlightInfo(inboundFlightInfoRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 115 def InboundFlightInfo(inboundFlightInfoRequest) @inboundFlightInfoResult = InboundFlightInfoResults.new($api['InboundFlightInfo'].post inboundFlightInfoRequest.post, :content_type => "application/x-www-form-urlencoded") end
LatLongsToDistance(latLongsToDistanceRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 123 def LatLongsToDistance(latLongsToDistanceRequest) @latLongsToDistanceResult = LatLongsToDistanceResults.new($api['LatLongsToDistance'].post latLongsToDistanceRequest.post, :content_type => "application/x-www-form-urlencoded") end
LatLongsToHeading(latLongsToHeadingRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 127 def LatLongsToHeading(latLongsToHeadingRequest) @latLongsToHeadingResult = LatLongsToHeadingResults.new($api['LatLongsToHeading'].post latLongsToHeadingRequest.post, :content_type => "application/x-www-form-urlencoded") end
MapFlight(mapFlightRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 131 def MapFlight(mapFlightRequest) @mapFlightResult = MapFlightResults.new($api['MapFlight'].post mapFlightRequest.post, :content_type => "application/x-www-form-urlencoded") end
MapFlightEx(mapFlightExRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 135 def MapFlightEx(mapFlightExRequest) @mapFlightExResult = MapFlightExResults.new($api['MapFlightEx'].post mapFlightExRequest.post, :content_type => "application/x-www-form-urlencoded") end
Metar(metarRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 139 def Metar(metarRequest) @metarResult = MetarResults.new($api['Metar'].post metarRequest.post, :content_type => "application/x-www-form-urlencoded") end
MetarEx(metarExRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 143 def MetarEx(metarExRequest) @metarExResult = MetarExResults.new($api['MetarEx'].post metarExRequest.post, :content_type => "application/x-www-form-urlencoded") end
NTaf(nTafRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 147 def NTaf(nTafRequest) @nTafResult = NTafResults.new($api['NTaf'].post nTafRequest.post, :content_type => "application/x-www-form-urlencoded") end
RegisterAlertEndpoint(registerAlertEndpointRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 151 def RegisterAlertEndpoint(registerAlertEndpointRequest) @registerAlertEndpointResult = RegisterAlertEndpointResults.new($api['RegisterAlertEndpoint'].post registerAlertEndpointRequest.post, :content_type => "application/x-www-form-urlencoded") end
RoutesBetweenAirports(routesBetweenAirportsRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 155 def RoutesBetweenAirports(routesBetweenAirportsRequest) @routesBetweenAirportsResult = RoutesBetweenAirportsResults.new($api['RoutesBetweenAirports'].post routesBetweenAirportsRequest.post, :content_type => "application/x-www-form-urlencoded") end
RoutesBetweenAirportsEx(routesBetweenAirportsExRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 159 def RoutesBetweenAirportsEx(routesBetweenAirportsExRequest) @routesBetweenAirportsExResult = RoutesBetweenAirportsExResults.new($api['RoutesBetweenAirportsEx'].post routesBetweenAirportsExRequest.post, :content_type => "application/x-www-form-urlencoded") end
Scheduled(scheduledRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 163 def Scheduled(scheduledRequest) @scheduledResult = ScheduledResults.new($api['Scheduled'].post scheduledRequest.post, :content_type => "application/x-www-form-urlencoded") end
Search(searchRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 167 def Search(searchRequest) @searchResult = SearchResults.new($api['Search'].post searchRequest.post, :content_type => "application/x-www-form-urlencoded") end
SearchBirdseyeInFlight(searchBirdseyeInFlightRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 171 def SearchBirdseyeInFlight(searchBirdseyeInFlightRequest) @searchBirdseyeInFlightResult = SearchBirdseyeInFlightResults.new($api['SearchBirdseyeInFlight'].post searchBirdseyeInFlightRequest.post, :content_type => "application/x-www-form-urlencoded") end
SearchBirdseyePositions(searchBirdseyePositionsRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 175 def SearchBirdseyePositions(searchBirdseyePositionsRequest) @searchBirdseyePositionsResult = SearchBirdseyePositionsResults.new($api['SearchBirdseyePositions'].post searchBirdseyePositionsRequest.post, :content_type => "application/x-www-form-urlencoded") end
SearchCount(searchCountRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 179 def SearchCount(searchCountRequest) @searchCountResult = SearchCountResults.new($api['SearchCount'].post searchCountRequest.post, :content_type => "application/x-www-form-urlencoded") end
SetAlert(setAlertRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 183 def SetAlert(setAlertRequest) @setAlertResult = SetAlertResults.new($api['SetAlert'].post setAlertRequest.post, :content_type => "application/x-www-form-urlencoded") end
SetMaximumResultSize(setMaximumResultSizeRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 187 def SetMaximumResultSize(setMaximumResultSizeRequest) @setMaximumResultSizeResult = SetMaximumResultSizeResults.new($api['SetMaximumResultSize'].post setMaximumResultSizeRequest.post, :content_type => "application/x-www-form-urlencoded") end
Taf(tafRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 191 def Taf(tafRequest) @tafResult = TafResults.new($api['Taf'].post tafRequest.post, :content_type => "application/x-www-form-urlencoded") end
TailOwner(tailOwnerRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 195 def TailOwner(tailOwnerRequest) @tailOwnerResult = TailOwnerResults.new($api['TailOwner'].post tailOwnerRequest.post, :content_type => "application/x-www-form-urlencoded") end
ZipcodeInfo(zipcodeInfoRequest)
click to toggle source
# File lib/FlightXML2RESTDriver.rb, line 199 def ZipcodeInfo(zipcodeInfoRequest) @zipcodeInfoResult = ZipcodeInfoResults.new($api['ZipcodeInfo'].post zipcodeInfoRequest.post, :content_type => "application/x-www-form-urlencoded") end