Class: Amadeus::Namespaces::Shopping::FlightDestinations

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

Overview

A namespaced client for the /v1/shopping/flight-destinations endpoints

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.shopping.flight_destinations

Instance Method Summary collapse

Instance Method Details

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

Find the cheapest destinations where you can fly to.

Examples:

Find the cheapest destinations from Madrid

amadeus.shopping.flight_destinations.get(origin: 'MAD')

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :origin (String)

    City/Airport IATA code from which the flight will depart. BOS, for example.

Returns:

Raises:

  • (Amadeus::Base)

    an exception if the call failed



24
25
26
# File 'lib/amadeus/namespaces/shopping/flight_destinations.rb', line 24

def get(params = {})
  client.get('/v1/shopping/flight-destinations', params)
end