Class: Vortex::AnalyticsEvent
- Inherits:
-
Object
- Object
- Vortex::AnalyticsEvent
- Defined in:
- lib/vortex/webhook_types.rb
Overview
An analytics event representing client-side behavioral telemetry
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#deployment_id ⇒ Object
readonly
Returns the value of attribute deployment_id.
-
#environment_id ⇒ Object
readonly
Returns the value of attribute environment_id.
-
#foreign_user_id ⇒ Object
readonly
Returns the value of attribute foreign_user_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#organization_id ⇒ Object
readonly
Returns the value of attribute organization_id.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#project_id ⇒ Object
readonly
Returns the value of attribute project_id.
-
#segmentation ⇒ Object
readonly
Returns the value of attribute segmentation.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#widget_configuration_id ⇒ Object
readonly
Returns the value of attribute widget_configuration_id.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ AnalyticsEvent
constructor
A new instance of AnalyticsEvent.
Constructor Details
#initialize(attrs) ⇒ AnalyticsEvent
Returns a new instance of AnalyticsEvent.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'lib/vortex/webhook_types.rb', line 84 def initialize(attrs) @id = attrs['id'] @name = attrs['name'] @account_id = attrs['accountId'] @organization_id = attrs['organizationId'] @project_id = attrs['projectId'] @environment_id = attrs['environmentId'] @deployment_id = attrs['deploymentId'] = attrs['widgetConfigurationId'] @foreign_user_id = attrs['foreignUserId'] @session_id = attrs['sessionId'] @payload = attrs['payload'] @platform = attrs['platform'] @segmentation = attrs['segmentation'] = attrs['timestamp'] end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def account_id @account_id end |
#deployment_id ⇒ Object (readonly)
Returns the value of attribute deployment_id.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def deployment_id @deployment_id end |
#environment_id ⇒ Object (readonly)
Returns the value of attribute environment_id.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def environment_id @environment_id end |
#foreign_user_id ⇒ Object (readonly)
Returns the value of attribute foreign_user_id.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def foreign_user_id @foreign_user_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def name @name end |
#organization_id ⇒ Object (readonly)
Returns the value of attribute organization_id.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def organization_id @organization_id end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def payload @payload end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def platform @platform end |
#project_id ⇒ Object (readonly)
Returns the value of attribute project_id.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def project_id @project_id end |
#segmentation ⇒ Object (readonly)
Returns the value of attribute segmentation.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def segmentation @segmentation end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def session_id @session_id end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def end |
#widget_configuration_id ⇒ Object (readonly)
Returns the value of attribute widget_configuration_id.
79 80 81 |
# File 'lib/vortex/webhook_types.rb', line 79 def end |