class Radar::User

Constants

RESOURCE_NAME

Public Class Methods

all(params: nil) click to toggle source
# File lib/radar/user.rb, line 5
def self.all(params: nil)
  path = resource_base_path
  response = api_client.get(path, params: params)
  api_client.parsed_response(response, object_class: self)
end
delete(id:) click to toggle source
# File lib/radar/user.rb, line 17
def self.delete(id:)
  path = [resource_base_path, id].join('/')
  api_client.delete(path)
end
find(id:, params: nil) click to toggle source
# File lib/radar/user.rb, line 11
def self.find(id:, params: nil)
  path = [resource_base_path, id].join('/')
  response = api_client.get(path)
  api_client.parsed_response(response, object_class: self)
end