Class: VoucherifySdk::EventsApi
- Inherits:
-
Object
- Object
- VoucherifySdk::EventsApi
- Defined in:
- lib/VoucherifySdk/api/events_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#initialize(api_client = ApiClient.default) ⇒ EventsApi
constructor
A new instance of EventsApi.
-
#track_custom_event(opts = {}) ⇒ EventsCreateResponseBody
Track Custom Event To track a custom event, you create an event object.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/VoucherifySdk/api/events_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#track_custom_event(opts = {}) ⇒ EventsCreateResponseBody
Track Custom Event To track a custom event, you create an event object. The event object must be linked to the customer who performs the action. If a customer doesnt exist in Voucherify, the customer will be created.
27 28 29 30 |
# File 'lib/VoucherifySdk/api/events_api.rb', line 27 def track_custom_event(opts = {}) data, _status_code, _headers = track_custom_event_with_http_info(opts) data end |