Class: Amadeus::Namespaces::Shopping

Inherits:
Client::Decorator
  • Object
show all
Defined in:
lib/amadeus/namespaces/shopping.rb,
lib/amadeus/namespaces/shopping/hotel.rb,
lib/amadeus/namespaces/shopping/hotel/offer.rb,
lib/amadeus/namespaces/shopping/flight_dates.rb,
lib/amadeus/namespaces/shopping/hotel_offers.rb,
lib/amadeus/namespaces/shopping/flight_offers.rb,
lib/amadeus/namespaces/shopping/hotel/hotel_offers.rb,
lib/amadeus/namespaces/shopping/flight_destinations.rb

Overview

A namespaced client for the /v1/shopping endpoints

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.shopping

Defined Under Namespace

Classes: FlightDates, FlightDestinations, FlightOffers, Hotel, HotelOffers

Instance Method Summary collapse

Instance Method Details

#flight_datesAmadeus::Namespaces::Shopping::FlightDates

The namespace for the FlightDates API:

Examples:

amadeus.shopping.flight_dates

Returns:



40
41
42
# File 'lib/amadeus/namespaces/shopping.rb', line 40

def flight_dates
  Amadeus::Namespaces::Shopping::FlightDates.new(client)
end

#flight_destinationsAmadeus::Namespaces::Shopping::FlightDestinations

The namespace for the FlightDestinations API:

Examples:

amadeus.shopping.flight_destinations

Returns:



20
21
22
# File 'lib/amadeus/namespaces/shopping.rb', line 20

def flight_destinations
  Amadeus::Namespaces::Shopping::FlightDestinations.new(client)
end

#flight_offersAmadeus::Namespaces::Shopping::FlightOffers

The namespace for the FlightOffers API:

Examples:

amadeus.shopping.flight_offers

Returns:



30
31
32
# File 'lib/amadeus/namespaces/shopping.rb', line 30

def flight_offers
  Amadeus::Namespaces::Shopping::FlightOffers.new(client)
end

#hotel(hotel_id) ⇒ Amadeus::Namespaces::Shopping::Hotel

The namespace for the Hotels API:

Examples:

amadeus.shopping.hotel(hotel_id)

Parameters:

  • hotel_id (Number)

    The ID for the hotel to find offers for

Returns:



61
62
63
# File 'lib/amadeus/namespaces/shopping.rb', line 61

def hotel(hotel_id)
  Amadeus::Namespaces::Shopping::Hotel.new(client, hotel_id)
end

#hotel_offersAmadeus::Namespaces::Shopping::HotelOffers

The namespace for the HotelOffers API:

Examples:

amadeus.shopping.hotel_offers

Returns:



50
51
52
# File 'lib/amadeus/namespaces/shopping.rb', line 50

def hotel_offers
  Amadeus::Namespaces::Shopping::HotelOffers.new(client)
end