Class: WorkOS::CreateMagicCodeAndReturn

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/user_management/create_magic_code_and_return.rb

Constant Summary collapse

HASH_ATTRS =
{
  email: :email,
  invitation_token: :invitation_token,
  ip_address: :ip_address,
  user_agent: :user_agent,
  radar_auth_attempt_id: :radar_auth_attempt_id,
  signals_id: :signals_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CreateMagicCodeAndReturn

Returns a new instance of CreateMagicCodeAndReturn.



24
25
26
27
28
29
30
31
32
# File 'lib/workos/user_management/create_magic_code_and_return.rb', line 24

def initialize(json)
  hash = self.class.normalize(json)
  @email = hash[:email]
  @invitation_token = hash[:invitation_token]
  @ip_address = hash[:ip_address]
  @user_agent = hash[:user_agent]
  @radar_auth_attempt_id = hash[:radar_auth_attempt_id]
  @signals_id = hash[:signals_id]
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



16
17
18
# File 'lib/workos/user_management/create_magic_code_and_return.rb', line 16

def email
  @email
end

#invitation_tokenObject

Returns the value of attribute invitation_token.



16
17
18
# File 'lib/workos/user_management/create_magic_code_and_return.rb', line 16

def invitation_token
  @invitation_token
end

#ip_addressObject

Returns the value of attribute ip_address.



16
17
18
# File 'lib/workos/user_management/create_magic_code_and_return.rb', line 16

def ip_address
  @ip_address
end

#radar_auth_attempt_idObject

Returns the value of attribute radar_auth_attempt_id.



16
17
18
# File 'lib/workos/user_management/create_magic_code_and_return.rb', line 16

def radar_auth_attempt_id
  @radar_auth_attempt_id
end

#signals_idObject

Returns the value of attribute signals_id.



16
17
18
# File 'lib/workos/user_management/create_magic_code_and_return.rb', line 16

def signals_id
  @signals_id
end

#user_agentObject

Returns the value of attribute user_agent.



16
17
18
# File 'lib/workos/user_management/create_magic_code_and_return.rb', line 16

def user_agent
  @user_agent
end