Class: WorkOS::AuthenticateResponseImpersonator
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuthenticateResponseImpersonator
- Defined in:
- lib/workos/user_management/authenticate_response_impersonator.rb
Constant Summary collapse
- HASH_ATTRS =
{ email: :email, reason: :reason }.freeze
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#reason ⇒ Object
Returns the value of attribute reason.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuthenticateResponseImpersonator
constructor
A new instance of AuthenticateResponseImpersonator.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuthenticateResponseImpersonator
Returns a new instance of AuthenticateResponseImpersonator.
16 17 18 19 20 |
# File 'lib/workos/user_management/authenticate_response_impersonator.rb', line 16 def initialize(json) hash = self.class.normalize(json) @email = hash[:email] @reason = hash[:reason] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
12 13 14 |
# File 'lib/workos/user_management/authenticate_response_impersonator.rb', line 12 def email @email end |
#reason ⇒ Object
Returns the value of attribute reason.
12 13 14 |
# File 'lib/workos/user_management/authenticate_response_impersonator.rb', line 12 def reason @reason end |