Class: Wego::Search

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

Class Method Summary collapse

Class Method Details

.create(location_id:, check_in:, check_out:, user_ip:, **options) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/wego/search.rb', line 5

def self.create(location_id:, check_in:, check_out:, user_ip:, **options)
  Wego.get_resource(
    "search/new",
    location_id: location_id,
    check_in: Wego.format_date(check_in),
    check_out: Wego.format_date(check_out),
    user_ip: user_ip,
    **options
  )
end