Class: WorkOS::CreateMagicCodeAndReturn
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateMagicCodeAndReturn
- 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
-
#email ⇒ Object
Returns the value of attribute email.
-
#invitation_token ⇒ Object
Returns the value of attribute invitation_token.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#radar_auth_attempt_id ⇒ Object
Returns the value of attribute radar_auth_attempt_id.
-
#signals_id ⇒ Object
Returns the value of attribute signals_id.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateMagicCodeAndReturn
constructor
A new instance of CreateMagicCodeAndReturn.
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
#email ⇒ Object
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_token ⇒ Object
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_address ⇒ Object
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_id ⇒ Object
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_id ⇒ Object
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_agent ⇒ Object
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 |