Class: WorkOS::CreateUser
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateUser
- Defined in:
- lib/workos/user_management/create_user.rb
Constant Summary collapse
- HASH_ATTRS =
{ email: :email, first_name: :first_name, last_name: :last_name, name: :name, email_verified: :email_verified, metadata: :metadata, external_id: :external_id, ip_address: :ip_address, user_agent: :user_agent, signals_id: :signals_id, password: :password, password_hash: :password_hash, password_hash_type: :password_hash_type }.freeze
Instance Attribute Summary collapse
-
#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.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#password ⇒ Object
Returns the value of attribute password.
-
#password_hash ⇒ Object
Returns the value of attribute password_hash.
-
#password_hash_type ⇒ Object
Returns the value of attribute password_hash_type.
-
#signals_id ⇒ Object
Returns the value of attribute signals_id.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateUser
constructor
A new instance of CreateUser.
Constructor Details
#initialize(json) ⇒ CreateUser
Returns a new instance of CreateUser.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/workos/user_management/create_user.rb', line 38 def initialize(json) hash = self.class.normalize(json) @email = hash[:email] @first_name = hash[:first_name] @last_name = hash[:last_name] @name = hash[:name] @email_verified = hash[:email_verified] @metadata = hash[:metadata] || {} @external_id = hash[:external_id] @ip_address = hash[:ip_address] @user_agent = hash[:user_agent] @signals_id = hash[:signals_id] @password = hash[:password] @password_hash = hash[:password_hash] @password_hash_type = hash[:password_hash_type] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
23 24 25 |
# File 'lib/workos/user_management/create_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/create_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/create_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/create_user.rb', line 23 def first_name @first_name end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
23 24 25 |
# File 'lib/workos/user_management/create_user.rb', line 23 def ip_address @ip_address end |
#last_name ⇒ Object
Returns the value of attribute last_name.
23 24 25 |
# File 'lib/workos/user_management/create_user.rb', line 23 def last_name @last_name end |
#metadata ⇒ Object
Returns the value of attribute metadata.
23 24 25 |
# File 'lib/workos/user_management/create_user.rb', line 23 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
23 24 25 |
# File 'lib/workos/user_management/create_user.rb', line 23 def name @name end |
#password ⇒ Object
Returns the value of attribute password.
23 24 25 |
# File 'lib/workos/user_management/create_user.rb', line 23 def password @password end |
#password_hash ⇒ Object
Returns the value of attribute password_hash.
23 24 25 |
# File 'lib/workos/user_management/create_user.rb', line 23 def password_hash @password_hash end |
#password_hash_type ⇒ Object
Returns the value of attribute password_hash_type.
23 24 25 |
# File 'lib/workos/user_management/create_user.rb', line 23 def password_hash_type @password_hash_type end |
#signals_id ⇒ Object
Returns the value of attribute signals_id.
23 24 25 |
# File 'lib/workos/user_management/create_user.rb', line 23 def signals_id @signals_id end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
23 24 25 |
# File 'lib/workos/user_management/create_user.rb', line 23 def user_agent @user_agent end |