Class: WorkOS::UserCreateResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::UserCreateResponse
- Defined in:
- lib/workos/user_management/user_create_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, id: :id, first_name: :first_name, last_name: :last_name, name: :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, radar_auth_attempt_id: :radar_auth_attempt_id }.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.
-
#name ⇒ Object
Returns the value of attribute name.
-
#object ⇒ Object
Returns the value of attribute object.
-
#profile_picture_url ⇒ Object
Returns the value of attribute profile_picture_url.
-
#radar_auth_attempt_id ⇒ Object
Returns the value of attribute radar_auth_attempt_id.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ UserCreateResponse
constructor
A new instance of UserCreateResponse.
Constructor Details
#initialize(json) ⇒ UserCreateResponse
Returns a new instance of UserCreateResponse.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/workos/user_management/user_create_response.rb', line 42 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @id = hash[:id] @first_name = hash[:first_name] @last_name = hash[:last_name] @name = hash[: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] @radar_auth_attempt_id = hash[:radar_auth_attempt_id] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def email @email end |
#email_verified ⇒ Object
Returns the value of attribute email_verified.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def email_verified @email_verified end |
#external_id ⇒ Object
Returns the value of attribute external_id.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def external_id @external_id end |
#first_name ⇒ Object
Returns the value of attribute first_name.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def last_name @last_name end |
#last_sign_in_at ⇒ Object
Returns the value of attribute last_sign_in_at.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def last_sign_in_at @last_sign_in_at end |
#locale ⇒ Object
Returns the value of attribute locale.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def locale @locale end |
#metadata ⇒ Object
Returns the value of attribute metadata.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def object @object end |
#profile_picture_url ⇒ Object
Returns the value of attribute profile_picture_url.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def profile_picture_url @profile_picture_url end |
#radar_auth_attempt_id ⇒ Object
Returns the value of attribute radar_auth_attempt_id.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def radar_auth_attempt_id @radar_auth_attempt_id end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
25 26 27 |
# File 'lib/workos/user_management/user_create_response.rb', line 25 def updated_at @updated_at end |