Class: Amadeus::Namespaces::Shopping::Hotel::Offer
- Inherits:
-
Client::Decorator
- Object
- Client::Decorator
- Amadeus::Namespaces::Shopping::Hotel::Offer
- Defined in:
- lib/amadeus/namespaces/shopping/hotel/offer.rb
Overview
Instance Attribute Summary collapse
-
#hotel_id ⇒ Object
readonly
the Hotel ID.
-
#offer_id ⇒ Object
readonly
the Offer ID.
Instance Method Summary collapse
-
#get(params = {}) ⇒ Amadeus::Response
Get room and rate details.
-
#initialize(client, hotel_id, offer_id) ⇒ Offer
constructor
Initialize this namespaced client with an Client instance, a Hotel ID, and an Offer ID.
Constructor Details
#initialize(client, hotel_id, offer_id) ⇒ Offer
Initialize this namespaced client with an Client instance, a Hotel ID, and an Offer ID
28 29 30 31 32 |
# File 'lib/amadeus/namespaces/shopping/hotel/offer.rb', line 28 def initialize(client, hotel_id, offer_id) super(client) @hotel_id = hotel_id @offer_id = offer_id end |
Instance Attribute Details
#hotel_id ⇒ Object (readonly)
the Hotel ID
17 18 19 |
# File 'lib/amadeus/namespaces/shopping/hotel/offer.rb', line 17 def hotel_id @hotel_id end |
#offer_id ⇒ Object (readonly)
the Offer ID
19 20 21 |
# File 'lib/amadeus/namespaces/shopping/hotel/offer.rb', line 19 def offer_id @offer_id end |
Instance Method Details
#get(params = {}) ⇒ Amadeus::Response
Get room and rate details
42 43 44 45 46 |
# File 'lib/amadeus/namespaces/shopping/hotel/offer.rb', line 42 def get(params = {}) client.get( "/v1/shopping/hotels/#{@hotel_id}/offers/#{@offer_id}", params ) end |