Class: Amadeus::Namespaces::Shopping::Hotel::HotelOffers
- Inherits:
-
Client::Decorator
- Object
- Client::Decorator
- Amadeus::Namespaces::Shopping::Hotel::HotelOffers
- Defined in:
- lib/amadeus/namespaces/shopping/hotel/hotel_offers.rb
Overview
Instance Attribute Summary collapse
-
#hotel_id ⇒ Object
readonly
the Hotel ID.
Instance Method Summary collapse
-
#get(params = {}) ⇒ Amadeus::Response
Get one hotel and its available offers.
-
#initialize(client, hotel_id) ⇒ HotelOffers
constructor
Initialize this namespaced client with an Client instance and a Hotel ID.
Constructor Details
#initialize(client, hotel_id) ⇒ HotelOffers
Initialize this namespaced client with an Client instance and a Hotel ID
25 26 27 28 |
# File 'lib/amadeus/namespaces/shopping/hotel/hotel_offers.rb', line 25 def initialize(client, hotel_id) super(client) @hotel_id = hotel_id end |
Instance Attribute Details
#hotel_id ⇒ Object (readonly)
the Hotel ID
17 18 19 |
# File 'lib/amadeus/namespaces/shopping/hotel/hotel_offers.rb', line 17 def hotel_id @hotel_id end |
Instance Method Details
#get(params = {}) ⇒ Amadeus::Response
Get one hotel and its available offers
37 38 39 |
# File 'lib/amadeus/namespaces/shopping/hotel/hotel_offers.rb', line 37 def get(params = {}) client.get("/v1/shopping/hotels/#{@hotel_id}/hotel-offers", params) end |