Class: Amadeus::Namespaces::Travel::Predictions

Inherits:
Client::Decorator
  • Object
show all
Defined in:
lib/amadeus/namespaces/travel/predictions.rb,
lib/amadeus/namespaces/travel/predictions/flight_delay.rb,
lib/amadeus/namespaces/travel/predictions/trip_purpose.rb

Overview

A namespaced client for the /v1/travel/predictions endpoints

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.travel.predictions

Defined Under Namespace

Classes: FlightDelay, TripPurpose

Instance Method Summary collapse

Instance Method Details

#flight_delayAmadeus::Namespaces::Travel::Predictions

The namespace for the travel Predictions APIs:

Examples:

amadeus.travel.predictions.flight_delay

Returns:



31
32
33
# File 'lib/amadeus/namespaces/travel/predictions.rb', line 31

def flight_delay
  Amadeus::Namespaces::Travel::Predictions::FlightDelay.new(client)
end

#trip_purposeAmadeus::Namespaces::Travel::Predictions

The namespace for the travel Predictions APIs:

Examples:

amadeus.travel.predictions.trip_purpose

Returns:



21
22
23
# File 'lib/amadeus/namespaces/travel/predictions.rb', line 21

def trip_purpose
  Amadeus::Namespaces::Travel::Predictions::TripPurpose.new(client)
end