Class: Wego::Booking

Inherits:
Object
  • Object
show all
Defined in:
lib/wego/booking.rb

Class Method Summary collapse

Class Method Details

.url_for(search_id, hotel_id:, room_rate_id:, **options) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/wego/booking.rb', line 3

def self.url_for(search_id, hotel_id:, room_rate_id:, **options)
  Wego::Client.new(
    "search/redirect/#{search_id}",
    hotel_id: hotel_id,
    room_rate_id: room_rate_id,
    **options
  ).url
end