class Sisense::User
Constants
- RESOURCE_NAME
Public Class Methods
create(params:)
click to toggle source
# File lib/sisense/user.rb, line 17 def self.create(params:) path = resource_base_path response = api_client.post(path, params: params) api_client.parsed_response(response, object_class: self) end
delete(id:)
click to toggle source
# File lib/sisense/user.rb, line 29 def self.delete(id:) path = [resource_base_path, id].join("/") api_client.delete(path) end
list(params: nil)
click to toggle source
# File lib/sisense/user.rb, line 5 def self.list(params: nil) path = resource_base_path response = api_client.get(path, params: params) api_client.parsed_response(response, object_class: self) end
retrieve(id:, params: nil)
click to toggle source
# File lib/sisense/user.rb, line 11 def self.retrieve(id:, params: nil) path = [resource_base_path, id].join("/") response = api_client.get(path, params: params) api_client.parsed_response(response, object_class: self) end
update(id:, params:)
click to toggle source
# File lib/sisense/user.rb, line 23 def self.update(id:, params:) path = [resource_base_path, id].join("/") response = api_client.patch(path, params: params) api_client.parsed_response(response, object_class: self) end