Class: Amadeus::Namespaces::EReputation::HotelSentiments

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

Overview

A namespaced client for the /v2/e-reputation/hotel-sentiments endpoints

Access via the Amadeus::Client object

amadeus = Amadeus::Client.new
amadeus.e_reputation.hotel_sentiments

Instance Method Summary collapse

Instance Method Details

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

For a given list of hotels, returns the sentiment analysis of each hotel

Examples:

Search for hotels in London

amadeus.e_reputation.hotel_sentiments.get(
  hotelIds: 'GUNYCAXZ,CTLONCMB'
)

Parameters:

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

    a customizable set of options

Options Hash (params):

  • :hotelIds (String)

    list of hotel ids separated by comas

Returns:

  • (Amadeus:Response)

    a parsed response

Raises:

  • (Amadeus:Base)

    an exception if the call failed



25
26
27
# File 'lib/amadeus/namespaces/e_reputation/hotel_sentiments.rb', line 25

def get(params = {})
  client.get('/v2/e-reputation/hotel-sentiments', params)
end