Class: G5AuthenticationClient::User
- Inherits:
-
Modelish::Base
- Object
- Modelish::Base
- G5AuthenticationClient::User
- Defined in:
- lib/g5_authentication_client/user.rb
Overview
A G5 Authentication User
Instance Attribute Summary collapse
-
#email ⇒ String
The user’s email address.
-
#first_name ⇒ String
The user’s first name.
-
#id ⇒ Integer
The user’s id.
-
#last_name ⇒ String
The user’s last name.
-
#organization_name ⇒ String
The user’s organization name.
-
#password ⇒ String
The user’s password.
-
#password_confirmation ⇒ String
The user’s password_confirmation.
-
#phone_number ⇒ String
The user’s phone number.
-
#title ⇒ String
The user’s title.
Instance Method Summary collapse
Instance Attribute Details
#email ⇒ String
The user’s email address.
11 |
# File 'lib/g5_authentication_client/user.rb', line 11 property :email, type: String, required: true |
#first_name ⇒ String
The user’s first name. Not required to create a user.
31 |
# File 'lib/g5_authentication_client/user.rb', line 31 property :first_name, type: String |
#id ⇒ Integer
The user’s id. Not required to create a user.
26 |
# File 'lib/g5_authentication_client/user.rb', line 26 property :id, type: Integer |
#last_name ⇒ String
The user’s last name. Not required to create a user.
36 |
# File 'lib/g5_authentication_client/user.rb', line 36 property :last_name, type: String |
#organization_name ⇒ String
The user’s organization name. Not required to create a user.
46 |
# File 'lib/g5_authentication_client/user.rb', line 46 property :organization_name, type: String |
#password ⇒ String
The user’s password. Required to create a user.
16 |
# File 'lib/g5_authentication_client/user.rb', line 16 property :password, type: String |
#password_confirmation ⇒ String
The user’s password_confirmation.
21 |
# File 'lib/g5_authentication_client/user.rb', line 21 property :password_confirmation, type: String |
#phone_number ⇒ String
The user’s phone number. Not required to create a user.
51 |
# File 'lib/g5_authentication_client/user.rb', line 51 property :phone_number, type: String |
#title ⇒ String
The user’s title. Not required to create a user.
41 |
# File 'lib/g5_authentication_client/user.rb', line 41 property :title, type: String |
Instance Method Details
#validate_for_create! ⇒ Object
53 54 55 56 |
# File 'lib/g5_authentication_client/user.rb', line 53 def validate_for_create! validate! raise ArgumentError.new("Password required for new user.") unless !password.nil? end |