Class: Amadeus::Namespaces::Shopping::HotelOffer
- Inherits:
-
Client::Decorator
- Object
- Client::Decorator
- Amadeus::Namespaces::Shopping::HotelOffer
- Defined in:
- lib/amadeus/namespaces/shopping/hotel_offer.rb
Overview
Instance Attribute Summary collapse
-
#offer_id ⇒ Object
readonly
the Offer ID.
Instance Method Summary collapse
-
#get(params = {}) ⇒ Amadeus::Response
Return all available details of a specific hotel offer.
-
#initialize(client, offer_id) ⇒ HotelOffer
constructor
Initialize this namespaced client with an Client instance and an Offer ID.
Constructor Details
#initialize(client, offer_id) ⇒ HotelOffer
Initialize this namespaced client with an Client instance and an Offer ID
24 25 26 27 |
# File 'lib/amadeus/namespaces/shopping/hotel_offer.rb', line 24 def initialize(client, offer_id) super(client) @offer_id = offer_id end |
Instance Attribute Details
#offer_id ⇒ Object (readonly)
the Offer ID
16 17 18 |
# File 'lib/amadeus/namespaces/shopping/hotel_offer.rb', line 16 def offer_id @offer_id end |
Instance Method Details
#get(params = {}) ⇒ Amadeus::Response
Return all available details of a specific hotel offer
36 37 38 |
# File 'lib/amadeus/namespaces/shopping/hotel_offer.rb', line 36 def get(params = {}) client.get("/v2/shopping/hotel-offers/#{@offer_id}", params) end |