Module: HotelsPro
- Defined in:
- lib/hotels_pro.rb,
lib/hotels_pro/query.rb,
lib/hotels_pro/stubs.rb,
lib/hotels_pro/request.rb,
lib/hotels_pro/version.rb,
lib/hotels_pro/response.rb,
lib/hotels_pro/stubs/stub.rb,
lib/hotels_pro/underscorer.rb,
lib/hotels_pro/configuration.rb,
lib/hotels_pro/api/api_method.rb,
lib/hotels_pro/api/api_params.rb,
lib/hotels_pro/api/elements/pax.rb,
lib/hotels_pro/api/elements/hotel.rb,
lib/hotels_pro/api/elements/filter.rb,
lib/hotels_pro/api/elements/policy.rb,
lib/hotels_pro/api/elements/book_info.rb,
lib/hotels_pro/api/elements/pax_array.rb,
lib/hotels_pro/api/elements/daily_rate.rb,
lib/hotels_pro/api/methods/get_balance.rb,
lib/hotels_pro/api/elements/room_response.rb,
lib/hotels_pro/api/elements/lead_traveller.rb,
lib/hotels_pro/api/methods/make_hotel_booking.rb,
lib/hotels_pro/api/methods/allocate_hotel_code.rb,
lib/hotels_pro/api/methods/amend_hotel_booking.rb,
lib/hotels_pro/api/methods/get_available_hotel.rb,
lib/hotels_pro/api/methods/cancel_hotel_booking.rb,
lib/hotels_pro/api/methods/get_hotel_booking_status.rb,
lib/hotels_pro/api/methods/get_hotel_cancellation_policy.rb
Defined Under Namespace
Modules: Api, Stubs, Underscorer
Classes: Configuration, ErrorResponse, Query, RemoteError, Request, Response, UnstubbedRequest
Constant Summary
collapse
- VERSION =
"0.2"
Class Method Summary
collapse
Class Method Details
.allocate_hotel_code(options = {}) ⇒ Object
.configuration ⇒ Object
38
39
40
|
# File 'lib/hotels_pro.rb', line 38
def configuration
@configuration ||= Configuration.new
end
|
42
43
44
|
# File 'lib/hotels_pro.rb', line 42
def configure
yield(configuration)
end
|
.get_available_hotel(options = {}) ⇒ Object
.log(message) ⇒ Object
46
47
48
49
50
|
# File 'lib/hotels_pro.rb', line 46
def log(message)
if configuration.logger
configuration.logger.info("[HotelsPro] #{message}")
end
end
|