Class: Amadeus::Namespaces::Airport::Predictions::OnTime

Inherits:
Client::Decorator
  • Object
show all
Defined in:
lib/amadeus/namespaces/airport/predictions/on_time.rb

Overview

A namespaced client for the /v1/airport/predictions/on_time endpoints

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.airport.predictions.on_time

Instance Method Summary collapse

Instance Method Details

#get(params = {}) ⇒ Amadeus::Response

Returns a prediction on airport performance.

Examples:

amadeus.airport.predictions.on_time.get(airportCode: 'JFK', date: '2020-09-01')

Parameters:

  • params (Hash) (defaults to: {})

    a customizable set of options

Options Hash (params):

  • :airportCode (String)

    IATA code of the airport

  • :date (String)

    date of the prediction, in the future

Returns:

Raises:

  • (Amadeus::Base)

    an exception if the call failed



25
26
27
# File 'lib/amadeus/namespaces/airport/predictions/on_time.rb', line 25

def get(params = {})
  client.get('/v1/airport/predictions/on-time', params)
end