Class: Typesense::AnalyticsEventsV1
- Inherits:
-
Object
- Object
- Typesense::AnalyticsEventsV1
- Defined in:
- lib/typesense/analytics_events_v1.rb
Constant Summary collapse
- RESOURCE_PATH =
'/analytics/events'
Instance Method Summary collapse
- #create(params) ⇒ Object
-
#initialize(api_call) ⇒ AnalyticsEventsV1
constructor
A new instance of AnalyticsEventsV1.
Constructor Details
#initialize(api_call) ⇒ AnalyticsEventsV1
Returns a new instance of AnalyticsEventsV1.
7 8 9 |
# File 'lib/typesense/analytics_events_v1.rb', line 7 def initialize(api_call) @api_call = api_call end |
Instance Method Details
#create(params) ⇒ Object
11 12 13 |
# File 'lib/typesense/analytics_events_v1.rb', line 11 def create(params) @api_call.post(endpoint_path, params) end |