Class: Amadeus::Namespaces::Shopping::FlightOffersSearch::Prediction

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

Overview

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

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.shopping.flight_offers_search.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_search.prediction.post(
 flight_offers_search_response.body)

Parameters:

  • body (Hash)

    a customizable set of options

Returns:

Raises:

  • (Amadeus::Base)

    an exception if the call failed



26
27
28
# File 'lib/amadeus/namespaces/shopping/flight_offers_search/prediction.rb', line 26

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