Module: Parse::API::Aggregate
- Included in:
- Client
- Defined in:
- lib/parse/api/aggregate.rb
Overview
REST API methods for fetching CRUD operations on Parse objects.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #aggregate_objects(className, query = {}, headers: {}, **opts) ⇒ Parse::Response
Aggregate a set of matching objects for a query.
- #aggregate_uri_path(className) ⇒ String
Get the API path for this class.
Instance Method Details
#aggregate_objects(className, query = {}, headers: {}, **opts) ⇒ Parse::Response
Aggregate a set of matching objects for a query.
52 53 54 55 56 | # File 'lib/parse/api/aggregate.rb', line 52 def aggregate_objects(className, query = {}, headers: {}, **opts) response = request :get, aggregate_uri_path(className), query: query, headers: headers, opts: opts response.parse_class = className if response.present? response end |
#aggregate_uri_path(className) ⇒ String
Get the API path for this class.
41 42 43 | # File 'lib/parse/api/aggregate.rb', line 41 def aggregate_uri_path(className) self.class.aggregate_uri_path(className) end |