Class: Kaseya::BMS::Client::Locations

Inherits:
Api
  • Object
show all
Defined in:
lib/kaseya/bms/client/locations.rb

Instance Attribute Summary

Attributes inherited from Api

#connection

Instance Method Summary collapse

Methods inherited from Api

#get_many, #get_one, #initialize, #post, #put

Constructor Details

This class inherits a constructor from Kaseya::BMS::Api

Instance Method Details

#all(params = {}) ⇒ Object



3
4
5
# File 'lib/kaseya/bms/client/locations.rb', line 3

def all(params = {})
  get_many "crm/locations", params
end

#delete(id) ⇒ Object



19
20
21
# File 'lib/kaseya/bms/client/locations.rb', line 19

def delete(id)
  delete "crm/locations/#{id}"
end

#find(id) ⇒ Object



7
8
9
# File 'lib/kaseya/bms/client/locations.rb', line 7

def find(id)
  get_one "crm/locations/#{id}"
end

#new(params = {}) ⇒ Object



11
12
13
# File 'lib/kaseya/bms/client/locations.rb', line 11

def new(params = {})
  post "crm/locations", params
end

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



15
16
17
# File 'lib/kaseya/bms/client/locations.rb', line 15

def update(id, params = {})
  put "crm/locations/#{id}", params
end