Class: Radar::Track

Inherits:
API::Resource show all
Defined in:
lib/radar/track.rb

Constant Summary collapse

RESOURCE_NAME =
{ singular: 'user', plural: 'track' }.freeze

Class Method Summary collapse

Methods inherited from API::Resource

api_client, class_name, descendants, #initialize, resource_base_path, #to_h

Constructor Details

This class inherits a constructor from Radar::API::Resource

Class Method Details

.create(params:) ⇒ Object



5
6
7
8
9
# File 'lib/radar/track.rb', line 5

def self.create(params:)
  path = resource_base_path
  response = api_client.post(path, params: params)
  api_client.parsed_response(response, object_class: self)
end