Class: WorkOS::EmailChangeConfirmationUser
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::EmailChangeConfirmationUser
- Defined in:
- lib/workos/user_management/email_change_confirmation_user.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, id: :id, first_name: :first_name, last_name: :last_name, profile_picture_url: :profile_picture_url, email: :email, email_verified: :email_verified, external_id: :external_id, metadata: :metadata, last_sign_in_at: :last_sign_in_at, locale: :locale, created_at: :created_at, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email ⇒ Object
Returns the value of attribute email.
-
#email_verified ⇒ Object
Returns the value of attribute email_verified.
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#last_sign_in_at ⇒ Object
Returns the value of attribute last_sign_in_at.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#object ⇒ Object
Returns the value of attribute object.
-
#profile_picture_url ⇒ Object
Returns the value of attribute profile_picture_url.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ EmailChangeConfirmationUser
constructor
A new instance of EmailChangeConfirmationUser.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ EmailChangeConfirmationUser
Returns a new instance of EmailChangeConfirmationUser.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 38 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @id = hash[:id] @first_name = hash[:first_name] @last_name = hash[:last_name] @profile_picture_url = hash[:profile_picture_url] @email = hash[:email] @email_verified = hash[:email_verified] @external_id = hash[:external_id] @metadata = hash[:metadata] || {} @last_sign_in_at = hash[:last_sign_in_at] @locale = hash[:locale] @created_at = hash[:created_at] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def email @email end |
#email_verified ⇒ Object
Returns the value of attribute email_verified.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def email_verified @email_verified end |
#external_id ⇒ Object
Returns the value of attribute external_id.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def external_id @external_id end |
#first_name ⇒ Object
Returns the value of attribute first_name.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def last_name @last_name end |
#last_sign_in_at ⇒ Object
Returns the value of attribute last_sign_in_at.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def last_sign_in_at @last_sign_in_at end |
#locale ⇒ Object
Returns the value of attribute locale.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def locale @locale end |
#metadata ⇒ Object
Returns the value of attribute metadata.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def @metadata end |
#object ⇒ Object
Returns the value of attribute object.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def object @object end |
#profile_picture_url ⇒ Object
Returns the value of attribute profile_picture_url.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def profile_picture_url @profile_picture_url end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
23 24 25 |
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23 def updated_at @updated_at end |