Class: WorkOS::AuthenticationSSOStartedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuthenticationSSOStartedData
- Defined in:
- lib/workos/user_management/authentication_sso_started_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ type: :type, status: :status, ip_address: :ip_address, user_agent: :user_agent, user_id: :user_id, email: :email, sso: :sso }.freeze
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#sso ⇒ Object
Returns the value of attribute sso.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
-
#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) ⇒ AuthenticationSSOStartedData
constructor
A new instance of AuthenticationSSOStartedData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuthenticationSSOStartedData
Returns a new instance of AuthenticationSSOStartedData.
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/workos/user_management/authentication_sso_started_data.rb', line 26 def initialize(json) hash = self.class.normalize(json) @type = hash[:type] @status = hash[:status] @ip_address = hash[:ip_address] @user_agent = hash[:user_agent] @user_id = hash[:user_id] @email = hash[:email] @sso = hash[:sso] ? WorkOS::AuthenticationSSOStartedDataSSO.new(hash[:sso]) : nil end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
17 18 19 |
# File 'lib/workos/user_management/authentication_sso_started_data.rb', line 17 def email @email end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
17 18 19 |
# File 'lib/workos/user_management/authentication_sso_started_data.rb', line 17 def ip_address @ip_address end |
#sso ⇒ Object
Returns the value of attribute sso.
17 18 19 |
# File 'lib/workos/user_management/authentication_sso_started_data.rb', line 17 def sso @sso end |
#status ⇒ Object
Returns the value of attribute status.
17 18 19 |
# File 'lib/workos/user_management/authentication_sso_started_data.rb', line 17 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
17 18 19 |
# File 'lib/workos/user_management/authentication_sso_started_data.rb', line 17 def type @type end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
17 18 19 |
# File 'lib/workos/user_management/authentication_sso_started_data.rb', line 17 def user_agent @user_agent end |
#user_id ⇒ Object
Returns the value of attribute user_id.
17 18 19 |
# File 'lib/workos/user_management/authentication_sso_started_data.rb', line 17 def user_id @user_id end |