Module: Parse::API::Aggregate::ClassMethods

Defined in:
lib/parse/api/aggregate.rb

Overview

Class methods to be applied to Client

Instance Method Summary collapse

Instance Method Details

#aggregate_uri_path(className) ⇒ String

Get the aggregate API path for this class.

Parameters:

  • className (String)

    the name of the Parse collection.

Returns:

  • (String)

    the API uri path



29
30
31
32
33
34
35
# File 'lib/parse/api/aggregate.rb', line 29

def aggregate_uri_path(className)
  if className.is_a?(Parse::Pointer)
    id = className.id
    className = className.parse_class
  end
  "#{PATH_PREFIX}#{className}"
end