Class: CleverTap::Event
Constant Summary collapse
- DATA_STRING =
'evtData'.freeze
- EVENT_NAME_STRING =
'evtName'.freeze
- TYPE_VALUE_STRING =
'event'.freeze
- UPLOAD_LIMIT =
1000
Constants inherited from Entity
CleverTap::Entity::ALLOWED_IDENTITIES, CleverTap::Entity::IDENTITY_STRING, CleverTap::Entity::TIMESTAMP_STRING, CleverTap::Entity::TYPE_KEY_STRING
Instance Method Summary collapse
-
#initialize(**args) ⇒ Event
constructor
A new instance of Event.
- #to_h ⇒ Object
Methods inherited from Entity
Constructor Details
#initialize(**args) ⇒ Event
Returns a new instance of Event.
14 15 16 17 |
# File 'lib/clever_tap/event.rb', line 14 def initialize(**args) super(**args) @name = args[:name] end |
Instance Method Details
#to_h ⇒ Object
19 20 21 |
# File 'lib/clever_tap/event.rb', line 19 def to_h super.merge(put_event_name_pair) end |