Method: Evvnt::ClassTemplateMethods#create

Defined in:
lib/evvnt/class_template_methods.rb

#create(**params) ⇒ Object

Template method for creating a new record on the API.

params - A Hash of params to send to the API.

Returns Base subclass



18
19
20
21
# File 'lib/evvnt/class_template_methods.rb', line 18

def create(**params)
  path = nest_path_within_parent(plural_resource_path, params)
  api_request(:post, path, params: params)
end