Module: Ean3::Hotels
- Included in:
- Client
- Defined in:
- lib/ean3/hotels.rb
Instance Method Summary collapse
-
#getAlternateProperties ⇒ Object
Request Alternate Properties.
-
#getAvaliabillity ⇒ Object
Request Hotel Rooms.
-
#getCancel ⇒ Object
Cancel a Reservation.
-
#getGeoLocation ⇒ Object
Location Geo Functions.
-
#getInformation ⇒ Object
Request Hotel Infomation.
-
#getItinerary ⇒ Object
Request Itinerary Record.
-
#getList(options = {}) ⇒ Object
Request a List of Hotels.
-
#getPaymentInfo ⇒ Object
Request Payment Types.
-
#getPing ⇒ Object
Ping Request.
-
#getReservation ⇒ Object
Book a Reservation.
-
#getRules ⇒ Object
Request Rate Rules.
Instance Method Details
#getAlternateProperties ⇒ Object
Request Alternate Properties
89 90 91 92 93 94 |
# File 'lib/ean3/hotels.rb', line 89 def getAlternateProperties response = conncetion.get do |req| req.url "altProps", end return_error_or_body(response, response.body) end |
#getAvaliabillity ⇒ Object
Request Hotel Rooms
49 50 51 52 53 54 |
# File 'lib/ean3/hotels.rb', line 49 def getAvaliabillity response = conncetion.get do |req| req.url "avail", end return_error_or_body(response, response.body) end |
#getCancel ⇒ Object
Cancel a Reservation
109 110 111 112 113 114 |
# File 'lib/ean3/hotels.rb', line 109 def getCancel response = conncetion.post do |req| req.url "cancel", end return_error_or_body(response, response.body) end |
#getGeoLocation ⇒ Object
Location Geo Functions
29 30 31 32 33 34 |
# File 'lib/ean3/hotels.rb', line 29 def getGeoLocation response = connection.get do |req| req.url "geoSearch", end return_error_or_body(response, response.body) end |
#getInformation ⇒ Object
Request Hotel Infomation
39 40 41 42 43 44 |
# File 'lib/ean3/hotels.rb', line 39 def getInformation response = conncetion.get do |req| req.url "info", end return_error_or_body(response, response.body) end |
#getItinerary ⇒ Object
Request Itinerary Record
99 100 101 102 103 104 |
# File 'lib/ean3/hotels.rb', line 99 def getItinerary response = conncetion.get do |req| req.url "itin", end return_error_or_body(response, response.body) end |
#getList(options = {}) ⇒ Object
Request a List of Hotels
HotelListRequest Bese Elements =
Location search parameters alternative #1 (use city/stateProvinceCode/countryCode parameters) =
19 20 21 22 23 24 |
# File 'lib/ean3/hotels.rb', line 19 def getList(={}) response = connection.get do |req| req.url "list", end return_error_or_body(response, response.body) end |
#getPaymentInfo ⇒ Object
Request Payment Types
69 70 71 72 73 74 |
# File 'lib/ean3/hotels.rb', line 69 def getPaymentInfo response = conncetion.get do |req| req.url "paymentInfo", end return_error_or_body(response, response.body) end |
#getPing ⇒ Object
Ping Request
119 120 121 122 123 124 |
# File 'lib/ean3/hotels.rb', line 119 def getPing response = conncetion.get do |req| req.url "ping", end return_error_or_body(response, response.body) end |
#getReservation ⇒ Object
Book a Reservation
79 80 81 82 83 84 |
# File 'lib/ean3/hotels.rb', line 79 def getReservation response = conncetion.post do |req| req.url "res", end return_error_or_body(response, response.body) end |
#getRules ⇒ Object
Request Rate Rules
59 60 61 62 63 64 |
# File 'lib/ean3/hotels.rb', line 59 def getRules response = conncetion.get do |req| req.url "rules", end return_error_or_body(response, response.body) end |