Class: Amadeus::Namespaces::Shopping::HotelOffers

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

Overview

A namespaced client for the /v1/shopping/hotel-offers 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

Search for hotels and retrieve availability and rates information

Examples:

Search for hotels in London

amadeus.shopping.hotel_offers.get(
  cityCode: 'PAR'
)

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :cityCode (String)

    City IATA code

  • :latitude (Double)

    latitude of geographic location to search around. Example: 52.5238

  • :longitude (Double)

    Longitude of geographic location to search around. Example: 13.3835

  • :hotels (String)

    Comma separated list of Amadeus hotel codes to request. Example: RTPAR001

Returns:

Raises:

  • (Amadeus::Base)

    an exception if the call failed



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

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