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,
  locale: :locale
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CreateMagicCodeAndReturn

Returns a new instance of CreateMagicCodeAndReturn.



26
27
28
29
30
31
32
33
34
35
# File 'lib/workos/user_management/create_magic_code_and_return.rb', line 26

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]
  @locale = hash[:locale]
end

Instance Attribute Details

#email ⇒ Object

Returns the value of attribute email.



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

def email
  @email
end

#invitation_token ⇒ Object

Returns the value of attribute invitation_token.



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

def invitation_token
  @invitation_token
end

#ip_address ⇒ Object

Returns the value of attribute ip_address.



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

def ip_address
  @ip_address
end

#locale ⇒ Object

Returns the value of attribute locale.



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

def locale
  @locale
end

#radar_auth_attempt_id ⇒ Object

Returns the value of attribute radar_auth_attempt_id.



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

def radar_auth_attempt_id
  @radar_auth_attempt_id
end

#signals_id ⇒ Object

Returns the value of attribute signals_id.



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

def signals_id
  @signals_id
end

#user_agent ⇒ Object

Returns the value of attribute user_agent.



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

def user_agent
  @user_agent
end