Class: Amadeus::Namespaces::Travel::Analytics::AirTraffic::Traveled

Inherits:
Client::Decorator
  • Object
show all
Defined in:
lib/amadeus/namespaces/travel/analytics/air_traffic/traveled.rb

Overview

A namespaced client for the /v1/travel/analytics/air-traffic/traveled endpoints

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.travel.analytics.air_traffic.traveled

Instance Method Summary collapse

Instance Method Details

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

Returns a list of air traffic reports.

are travelling

in YYYY-MM format

Examples:

Find the air traffic from LHR in January 2011

amadeus.travel.analytics.air_traffic.traveled.get(
  origin: 'LHR',
  period: '2017-03'
)

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :origin (String)

    IATA code of the origin city - e.g. BOS for Boston - required

  • :query (String)

    period when consumers

Returns:

Raises:

  • (Amadeus::Base)

    an exception if the call failed



32
33
34
# File 'lib/amadeus/namespaces/travel/analytics/air_traffic/traveled.rb', line 32

def get(params = {})
  client.get('/v1/travel/analytics/air-traffic/traveled', params)
end