class Koho::Client::Customers

Public Instance Methods

create(params) click to toggle source
# File lib/koho.rb, line 221
def create params
  post '/', customer: params
end
destroy(id) click to toggle source
# File lib/koho.rb, line 229
def destroy id
  delete "/#{id}"
end
find(id) click to toggle source
# File lib/koho.rb, line 217
def find id
  get "/#{id}"
end
list() click to toggle source
# File lib/koho.rb, line 213
def list
  get '/'
end
list_with_permissions() click to toggle source
# File lib/koho.rb, line 233
def list_with_permissions
  get '/permitted'
end
update(id, params) click to toggle source
# File lib/koho.rb, line 225
def update id, params
  put "/#{id}", customer: params
end