Class: Amadeus::Namespaces::Shopping::HotelOffersByHotel

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

Overview

A namespaced client for the /v2/shopping/hotel-offers/by-hotel endpoints

Access via the Amadeus::Client object

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

Instance Method Summary collapse

Instance Method Details

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

Get the different offers for a dedicated hotel

Examples:

Get all offers for Holiday Inn Paris Notre Dame

amadeus.shopping.hotel_offers_by_hotel.get(
  hotelId: 'XKPARC12'
)

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :hotelId (String)

    Amadeus Property Code (8 chars)

Returns:

Raises:

  • (Amadeus::Base)

    an exception if the call failed



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

def get(params = {})
  client.get('/v2/shopping/hotel-offers/by-hotel', params)
end