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