Class: WorkOS::EventContextGoogleAnalyticsSession
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::EventContextGoogleAnalyticsSession
- Defined in:
- lib/workos/shared/event_context_google_analytics_session.rb
Constant Summary collapse
- HASH_ATTRS =
{ containerId: :container_id, sessionId: :session_id, sessionNumber: :session_number }.freeze
Instance Attribute Summary collapse
-
#container_id ⇒ Object
Returns the value of attribute container_id.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#session_number ⇒ Object
Returns the value of attribute session_number.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ EventContextGoogleAnalyticsSession
constructor
A new instance of EventContextGoogleAnalyticsSession.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ EventContextGoogleAnalyticsSession
Returns a new instance of EventContextGoogleAnalyticsSession.
18 19 20 21 22 23 |
# File 'lib/workos/shared/event_context_google_analytics_session.rb', line 18 def initialize(json) hash = self.class.normalize(json) @container_id = hash[:containerId] @session_id = hash[:sessionId] @session_number = hash[:sessionNumber] end |
Instance Attribute Details
#container_id ⇒ Object
Returns the value of attribute container_id.
13 14 15 |
# File 'lib/workos/shared/event_context_google_analytics_session.rb', line 13 def container_id @container_id end |
#session_id ⇒ Object
Returns the value of attribute session_id.
13 14 15 |
# File 'lib/workos/shared/event_context_google_analytics_session.rb', line 13 def session_id @session_id end |
#session_number ⇒ Object
Returns the value of attribute session_number.
13 14 15 |
# File 'lib/workos/shared/event_context_google_analytics_session.rb', line 13 def session_number @session_number end |