Class: Amadeus::Namespaces::Travel::Analytics::AirTraffic::Booked

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

Overview

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

Access via the Amadeus::Client object

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

Instance Method Summary collapse

Instance Method Details

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

Returns a list of air traffic reports, based on bookings.

IATA code of the origin city -

e.g. BOS for Boston - required

are booking

in YYYY-MM format - required

Examples:

Find the air traffic from Nice in August 2017

amadeus.travel.analytics.air_traffic.booked.get(
  originCityCode: 'NCE',
  period: '2017-08'
)

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :originCityCode (String)
  • :period (String)

    period when consumers

Returns:

Raises:

  • (Amadeus::Base)

    an exception if the call failed



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

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