class Radar::Geofence
Constants
- RESOURCE_NAME
Public Class Methods
all()
click to toggle source
# File lib/radar/geofence.rb, line 5 def self.all path = resource_base_path response = api_client.get(path, params: nil) api_client.parsed_response(response, object_class: self) end
delete(id:)
click to toggle source
# File lib/radar/geofence.rb, line 23 def self.delete(id:) path = [resource_base_path, id].join('/') api_client.delete(path) end
delete_by(tag:, external_id:)
click to toggle source
# File lib/radar/geofence.rb, line 28 def self.delete_by(tag:, external_id:) path = [resource_base_path, tag, external_id].join('/') api_client.delete(path) end
find(id:)
click to toggle source
# File lib/radar/geofence.rb, line 11 def self.find(id:) path = [resource_base_path, id].join('/') response = api_client.get(path, params: nil) api_client.parsed_response(response, object_class: self) end
upsert(tag:, external_id:, params:)
click to toggle source
# File lib/radar/geofence.rb, line 17 def self.upsert(tag:, external_id:, params:) path = [resource_base_path, tag, external_id].join('/') response = api_client.put(path, params: params) api_client.parsed_response(response, object_class: self) end
users(tag:, external_id:, params:)
click to toggle source
# File lib/radar/geofence.rb, line 33 def self.users(tag:, external_id:, params:) path = [resource_base_path, tag, external_id, 'users'].join('/') response = api_client.get(path, params: params) api_client.parsed_response(response, object_class: self) end