Class: Amadeus::Namespaces::Shopping::FlightOffers::Prediction

Inherits:
Client::Decorator
  • Object
show all
Defined in:
lib/amadeus/namespaces/shopping/flight_offers/prediction.rb

Overview

A namespaced client for the /v1/shopping/flight-offers/prediction endpoints

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.shopping.flight-offers.prediction

Instance Method Summary collapse

Instance Method Details

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

Returns a list of flight offers including a choice prediction for each itineary.

Examples:

amadeus.shopping.flight_offers.prediction.post(flight_offers_response.body)

Parameters:

  • body (Hash)

    a customizable set of options

Returns:

Raises:

  • (Amadeus::Base)

    an exception if the call failed



25
26
27
# File 'lib/amadeus/namespaces/shopping/flight_offers/prediction.rb', line 25

def post(params = {})
  client.post('/v1/shopping/flight-offers/prediction', params)
end