Module: YouCanBookMe::Client::Profiles

Includes:
YouCanBookMe::Connection::API
Included in:
YouCanBookMe::Client
Defined in:
lib/YouCanBookMe/client/profiles.rb,
lib/YouCanBookMe/client/profiles/bookings.rb

Defined Under Namespace

Modules: Bookings

Constant Summary

Constants included from YouCanBookMe::Connection::API

YouCanBookMe::Connection::API::BASE_URL

Instance Method Summary collapse

Instance Method Details

#create(params = {}) ⇒ Object



14
15
16
# File 'lib/YouCanBookMe/client/profiles.rb', line 14

def create(params = {})
  post('/profiles', params)
end

#destroy(profile_id, params = {}) ⇒ Object



26
27
28
# File 'lib/YouCanBookMe/client/profiles.rb', line 26

def destroy(profile_id, params = {})
  delete("/profiles/#{profile_id}", params)
end

#index(params = {}) ⇒ Object



10
11
12
# File 'lib/YouCanBookMe/client/profiles.rb', line 10

def index(params = {})
  get('/profiles', params)
end

#show(profile_id, params = {}) ⇒ Object



18
19
20
# File 'lib/YouCanBookMe/client/profiles.rb', line 18

def show(profile_id, params = {})
  get("/profiles/#{profile_id}", params)
end

#update(profile_id, params = {}) ⇒ Object



22
23
24
# File 'lib/YouCanBookMe/client/profiles.rb', line 22

def update(profile_id, params = {})
  patch("/profiles/#{profile_id}", params)
end