lib/access/api.rb in access-2.1.1 vs lib/access/api.rb in access-2.1.2

- old
+ new

@@ -38,9 +38,22 @@ request.get("/product_groups", "offer", options) do |response| ProductGroupResponse.new(response) end end + #Hotels + def search_hotels(options = {}) + request.get("/hotels", "hotel", options) do |response| + HotelResponse.new(response) + end + end + + def find_hotel(hotel_key, options = {}) + request.get("/hotels/#{hotel_key}", "hotel", options) do |response| + HotelResponse.new(response) + end + end + # Locations def search_locations(options = {}) request.get("/locations", "offer", options) do |response| LocationResponse.new(response) end