Class: WorkOS::EmailChangeConfirmationUser

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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_atObject

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

#emailObject

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_verifiedObject

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_idObject

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_nameObject

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

#idObject

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_nameObject

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_atObject

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
end

#localeObject

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

#metadataObject

Returns the value of attribute metadata.



23
24
25
# File 'lib/workos/user_management/email_change_confirmation_user.rb', line 23

def 
  @metadata
end

#objectObject

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_urlObject

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_atObject

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