Class: Amadeus::Namespaces::Shopping::Hotel
- Inherits:
-
Client::Decorator
- Object
- Client::Decorator
- Amadeus::Namespaces::Shopping::Hotel
- Defined in:
- lib/amadeus/namespaces/shopping/hotel.rb,
lib/amadeus/namespaces/shopping/hotel/offer.rb,
lib/amadeus/namespaces/shopping/hotel/hotel_offers.rb
Overview
Defined Under Namespace
Classes: HotelOffers, Offer
Instance Attribute Summary collapse
-
#hotel_id ⇒ Object
readonly
the Hotel ID.
Instance Method Summary collapse
-
#hotel_offers ⇒ Amadeus::Namespaces::Shopping::Hotels::HotelOffers
The namespace for the Hotels::HotelOffers API:.
-
#initialize(client, hotel_id) ⇒ Hotel
constructor
Initialize this namespaced client with an Client instance and a Hotel ID.
-
#offer(offer_id) ⇒ Amadeus::Namespaces::Shopping::Hotels::Offers
The namespace for the Hotels::Offers API:.
Constructor Details
Instance Attribute Details
#hotel_id ⇒ Object (readonly)
the Hotel ID
16 17 18 |
# File 'lib/amadeus/namespaces/shopping/hotel.rb', line 16 def hotel_id @hotel_id end |
Instance Method Details
#hotel_offers ⇒ Amadeus::Namespaces::Shopping::Hotels::HotelOffers
The namespace for the Hotels::HotelOffers API:
48 49 50 51 52 |
# File 'lib/amadeus/namespaces/shopping/hotel.rb', line 48 def hotel_offers Amadeus::Namespaces::Shopping::Hotel::HotelOffers.new( client, @hotel_id ) end |