Class: WorkOS::AuthenticationSSOTimedOutData

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/user_management/authentication_sso_timed_out_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,
  error: :error
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ AuthenticationSSOTimedOutData

Returns a new instance of AuthenticationSSOTimedOutData.



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/workos/user_management/authentication_sso_timed_out_data.rb', line 28

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::AuthenticationSSOTimedOutDataSSO.new(hash[:sso]) : nil
  @error = hash[:error] ? WorkOS::AuthenticationSSOTimedOutDataError.new(hash[:error]) : nil
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



18
19
20
# File 'lib/workos/user_management/authentication_sso_timed_out_data.rb', line 18

def email
  @email
end

#errorObject

Returns the value of attribute error.



18
19
20
# File 'lib/workos/user_management/authentication_sso_timed_out_data.rb', line 18

def error
  @error
end

#ip_addressObject

Returns the value of attribute ip_address.



18
19
20
# File 'lib/workos/user_management/authentication_sso_timed_out_data.rb', line 18

def ip_address
  @ip_address
end

#ssoObject

Returns the value of attribute sso.



18
19
20
# File 'lib/workos/user_management/authentication_sso_timed_out_data.rb', line 18

def sso
  @sso
end

#statusObject

Returns the value of attribute status.



18
19
20
# File 'lib/workos/user_management/authentication_sso_timed_out_data.rb', line 18

def status
  @status
end

#typeObject

Returns the value of attribute type.



18
19
20
# File 'lib/workos/user_management/authentication_sso_timed_out_data.rb', line 18

def type
  @type
end

#user_agentObject

Returns the value of attribute user_agent.



18
19
20
# File 'lib/workos/user_management/authentication_sso_timed_out_data.rb', line 18

def user_agent
  @user_agent
end

#user_idObject

Returns the value of attribute user_id.



18
19
20
# File 'lib/workos/user_management/authentication_sso_timed_out_data.rb', line 18

def user_id
  @user_id
end