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, locale: :locale }.freeze
Instance Attribute Summary collapse
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#new_email ⇒ Object
Returns the value of attribute new_email.
Instance Method Summary collapse
-
#initialize(json) ⇒ SendEmailChange
constructor
A new instance of SendEmailChange.
Constructor Details
#initialize(json) ⇒ SendEmailChange
Returns a new instance of SendEmailChange.
16 17 18 19 20 |
# File 'lib/workos/user_management/send_email_change.rb', line 16 def initialize(json) hash = self.class.normalize(json) @new_email = hash[:new_email] @locale = hash[:locale] end |
Instance Attribute Details
#locale ⇒ Object
Returns the value of attribute locale.
12 13 14 |
# File 'lib/workos/user_management/send_email_change.rb', line 12 def locale @locale end |
#new_email ⇒ Object
Returns the value of attribute new_email.
12 13 14 |
# File 'lib/workos/user_management/send_email_change.rb', line 12 def new_email @new_email end |