Module: Parse::API::Analytics

Included in:
Client
Defined in:
lib/parse/api/analytics.rb

Overview

Defines the Analytics interface for the Parse REST API

Instance Method Summary collapse

Instance Method Details

#send_analytics(event_name, metrics = {}) ⇒ Object

Send analytics data.

Parameters:

  • event_name (String)

    the name of the event.

  • metrics (Hash) (defaults to: {})

    the metrics to attach to event.

See Also:



13
14
15
# File 'lib/parse/api/analytics.rb', line 13

def send_analytics(event_name, metrics = {})
  request :post, "events/#{event_name}", body: metrics
end