Class: WorkOS::SessionCreatedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::SessionCreatedData
- Defined in:
- lib/workos/user_management/session_created_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, id: :id, impersonator: :impersonator, ip_address: :ip_address, organization_id: :organization_id, user_agent: :user_agent, user_id: :user_id, auth_method: :auth_method, status: :status, expires_at: :expires_at, ended_at: :ended_at, created_at: :created_at, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#auth_method ⇒ Object
Returns the value of attribute auth_method.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#ended_at ⇒ Object
Returns the value of attribute ended_at.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#impersonator ⇒ Object
Returns the value of attribute impersonator.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#object ⇒ Object
Returns the value of attribute object.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ SessionCreatedData
constructor
A new instance of SessionCreatedData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ SessionCreatedData
Returns a new instance of SessionCreatedData.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/workos/user_management/session_created_data.rb', line 38 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @id = hash[:id] @impersonator = hash[:impersonator] ? WorkOS::SessionCreatedDataImpersonator.new(hash[:impersonator]) : nil @ip_address = hash[:ip_address] @organization_id = hash[:organization_id] @user_agent = hash[:user_agent] @user_id = hash[:user_id] @auth_method = hash[:auth_method] @status = hash[:status] @expires_at = hash[:expires_at] @ended_at = hash[:ended_at] @created_at = hash[:created_at] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#auth_method ⇒ Object
Returns the value of attribute auth_method.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def auth_method @auth_method end |
#created_at ⇒ Object
Returns the value of attribute created_at.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def created_at @created_at end |
#ended_at ⇒ Object
Returns the value of attribute ended_at.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def ended_at @ended_at end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def expires_at @expires_at end |
#id ⇒ Object
Returns the value of attribute id.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def id @id end |
#impersonator ⇒ Object
Returns the value of attribute impersonator.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def impersonator @impersonator end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def ip_address @ip_address end |
#object ⇒ Object
Returns the value of attribute object.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def object @object end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def organization_id @organization_id end |
#status ⇒ Object
Returns the value of attribute status.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def updated_at @updated_at end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def user_agent @user_agent end |
#user_id ⇒ Object
Returns the value of attribute user_id.
23 24 25 |
# File 'lib/workos/user_management/session_created_data.rb', line 23 def user_id @user_id end |