Class: Typesense::AnalyticsEvents
- Inherits:
-
Object
- Object
- Typesense::AnalyticsEvents
- Defined in:
- lib/typesense/analytics_events.rb
Constant Summary collapse
- RESOURCE_PATH =
'/analytics/events'
Instance Method Summary collapse
- #create(params) ⇒ Object
-
#initialize(api_call) ⇒ AnalyticsEvents
constructor
A new instance of AnalyticsEvents.
- #retrieve(params = {}) ⇒ Object
Constructor Details
#initialize(api_call) ⇒ AnalyticsEvents
Returns a new instance of AnalyticsEvents.
7 8 9 |
# File 'lib/typesense/analytics_events.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.rb', line 11 def create(params) @api_call.post(self.class::RESOURCE_PATH, params) end |
#retrieve(params = {}) ⇒ Object
15 16 17 |
# File 'lib/typesense/analytics_events.rb', line 15 def retrieve(params = {}) @api_call.get(self.class::RESOURCE_PATH, params) end |