Class: Amadeus::Namespaces::Shopping

Inherits:
Client::Decorator
  • Object
show all
Defined in:
lib/amadeus/namespaces/shopping.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_destinations.rb,
lib/amadeus/namespaces/shopping/flight_offers_search.rb,
lib/amadeus/namespaces/shopping/hotel_offers_by_hotel.rb,
lib/amadeus/namespaces/shopping/flight_offers_search/prediction.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, FlightOffersSearch, HotelOffer, HotelOffers, HotelOffersByHotel

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_offers_searchAmadeus::Namespaces::Shopping::FlightOffersSearch

The namespace for the FlightOffers API:

Examples:

amadeus.shopping.flight_offers_search

Returns:



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

def flight_offers_search
  Amadeus::Namespaces::Shopping::FlightOffersSearch.new(client)
end

#hotel_offer(offer_id) ⇒ Amadeus::Namespaces::Shopping::HotelOffer

The namespace for the HotelOffers API:

Examples:

amadeus.shopping.hotel_offer(offer_id)

Parameters:

  • offer_id (Number)

    The ID for the offer for a specific hotel

Returns:



71
72
73
# File 'lib/amadeus/namespaces/shopping.rb', line 71

def hotel_offer(offer_id)
  Amadeus::Namespaces::Shopping::HotelOffer.new(client, offer_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

#hotel_offers_by_hotelAmadeus::Namespaces::Shopping::HotelOffersByHotel

The namespace for the HotelOffersByHotel API:

Examples:

amadeus.shopping.hotel_offers_by_hotel

Returns:



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

def hotel_offers_by_hotel
  Amadeus::Namespaces::Shopping::HotelOffersByHotel.new(client)
end