Method: Evvnt::ClassTemplateMethods#index

Defined in:
lib/evvnt/class_template_methods.rb

#index(**params) ⇒ Object

Template method for fetching an index of record from the API.

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

Returns Array



28
29
30
31
32
# File 'lib/evvnt/class_template_methods.rb', line 28

def index(**params)
  params.stringify_keys!
  path = nest_path_within_parent(plural_resource_path, params)
  api_request(:get, path, params: params)
end