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.
-
#id ⇒ Integer
The user’s id.
-
#password ⇒ String
The user’s password.
-
#password_confirmation ⇒ String
The user’s password_confirmation.
Instance Method Summary collapse
Instance Attribute Details
#email ⇒ String
The user’s email address.
10 |
# File 'lib/g5_authentication_client/user.rb', line 10 property :email, type: String, required: true |
#id ⇒ Integer
The user’s id. Not required to create a user.
25 |
# File 'lib/g5_authentication_client/user.rb', line 25 property :id, type: Integer |
#password ⇒ String
The user’s password. Required to create a user.
15 |
# File 'lib/g5_authentication_client/user.rb', line 15 property :password, type: String |
#password_confirmation ⇒ String
The user’s password_confirmation.
20 |
# File 'lib/g5_authentication_client/user.rb', line 20 property :password_confirmation, type: String |
Instance Method Details
#validate_for_create! ⇒ Object
27 28 29 30 |
# File 'lib/g5_authentication_client/user.rb', line 27 def validate_for_create! validate! raise ArgumentError.new("Password required for new user.") unless !password.nil? end |