Module: YouCanBookMe::Client::Profiles::Bookings
Constant Summary
YouCanBookMe::Connection::API::BASE_URL
Instance Method Summary
collapse
Instance Method Details
#create(profile_id, params = {}) ⇒ Object
15
16
17
|
# File 'lib/YouCanBookMe/client/profiles/bookings.rb', line 15
def create(profile_id, params = {})
post("/profiles/#{profile_id}/bookings", params)
end
|
#destroy(profile_id, booking_id, params = {}) ⇒ Object
27
28
29
|
# File 'lib/YouCanBookMe/client/profiles/bookings.rb', line 27
def destroy(profile_id, booking_id, params = {})
delete("/profiles/#{profile_id}/bookings/#{booking_id}", params)
end
|
#index(profile_id, params = {}) ⇒ Object
11
12
13
|
# File 'lib/YouCanBookMe/client/profiles/bookings.rb', line 11
def index(profile_id, params = {})
get("/profiles/#{profile_id}/bookings", params)
end
|
#show(profile_id, booking_id, params = {}) ⇒ Object
19
20
21
|
# File 'lib/YouCanBookMe/client/profiles/bookings.rb', line 19
def show(profile_id, booking_id, params = {})
get("/profiles/#{profile_id}/bookings/#{booking_id}", params)
end
|
#update(profile_id, booking_id, params = {}) ⇒ Object
23
24
25
|
# File 'lib/YouCanBookMe/client/profiles/bookings.rb', line 23
def update(profile_id, booking_id, params = {})
patch("/profiles/#{profile_id}/bookings/#{booking_id}", params)
end
|