Class: Vortex::AnalyticsEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/vortex/webhook_types.rb

Overview

An analytics event representing client-side behavioral telemetry

Instance Attribute Summary collapse

Instance Method Summary collapse

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']
  @widget_configuration_id = attrs['widgetConfigurationId']
  @foreign_user_id = attrs['foreignUserId']
  @session_id = attrs['sessionId']
  @payload = attrs['payload']
  @platform = attrs['platform']
  @segmentation = attrs['segmentation']
  @timestamp = attrs['timestamp']
end

Instance Attribute Details

#account_idObject (readonly)

Returns the value of attribute account_id.



79
80
81
# File 'lib/vortex/webhook_types.rb', line 79

def 
  @account_id
end

#deployment_idObject (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_idObject (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_idObject (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

#idObject (readonly)

Returns the value of attribute id.



79
80
81
# File 'lib/vortex/webhook_types.rb', line 79

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



79
80
81
# File 'lib/vortex/webhook_types.rb', line 79

def name
  @name
end

#organization_idObject (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

#payloadObject (readonly)

Returns the value of attribute payload.



79
80
81
# File 'lib/vortex/webhook_types.rb', line 79

def payload
  @payload
end

#platformObject (readonly)

Returns the value of attribute platform.



79
80
81
# File 'lib/vortex/webhook_types.rb', line 79

def platform
  @platform
end

#project_idObject (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

#segmentationObject (readonly)

Returns the value of attribute segmentation.



79
80
81
# File 'lib/vortex/webhook_types.rb', line 79

def segmentation
  @segmentation
end

#session_idObject (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

#timestampObject (readonly)

Returns the value of attribute timestamp.



79
80
81
# File 'lib/vortex/webhook_types.rb', line 79

def timestamp
  @timestamp
end

#widget_configuration_idObject (readonly)

Returns the value of attribute widget_configuration_id.



79
80
81
# File 'lib/vortex/webhook_types.rb', line 79

def widget_configuration_id
  @widget_configuration_id
end