Class: WorkOS::Impersonator
- Inherits:
-
Object
- Object
- WorkOS::Impersonator
- Includes:
- HashProvider
- Defined in:
- lib/workos/impersonator.rb
Overview
Contains information about a WorkOS Dashboard user impersonating a User Management user.
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(email:, reason:) ⇒ Impersonator
constructor
A new instance of Impersonator.
- #to_json ⇒ Object
Methods included from HashProvider
Constructor Details
#initialize(email:, reason:) ⇒ Impersonator
Returns a new instance of Impersonator.
11 12 13 14 |
# File 'lib/workos/impersonator.rb', line 11 def initialize(email:, reason:) @email = email @reason = reason end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
9 10 11 |
# File 'lib/workos/impersonator.rb', line 9 def email @email end |
#reason ⇒ Object
Returns the value of attribute reason.
9 10 11 |
# File 'lib/workos/impersonator.rb', line 9 def reason @reason end |
Instance Method Details
#to_json ⇒ Object
16 17 18 19 20 21 |
# File 'lib/workos/impersonator.rb', line 16 def to_json(*) { email: email, reason: reason, } end |