Class: SignIn::ValidatedCredential
- Inherits:
-
Object
- Object
- SignIn::ValidatedCredential
- Includes:
- ActiveModel::Validations
- Defined in:
- app/models/sign_in/validated_credential.rb
Instance Attribute Summary collapse
-
#client_config ⇒ Object
readonly
Returns the value of attribute client_config.
-
#credential_email ⇒ Object
readonly
Returns the value of attribute credential_email.
-
#device_sso ⇒ Object
readonly
Returns the value of attribute device_sso.
-
#user_attributes ⇒ Object
readonly
Returns the value of attribute user_attributes.
-
#user_verification ⇒ Object
readonly
Returns the value of attribute user_verification.
Instance Method Summary collapse
-
#initialize(user_verification:, client_config:, credential_email:, user_attributes:, device_sso:) ⇒ ValidatedCredential
constructor
A new instance of ValidatedCredential.
- #persisted? ⇒ Boolean
Constructor Details
#initialize(user_verification:, client_config:, credential_email:, user_attributes:, device_sso:) ⇒ ValidatedCredential
Returns a new instance of ValidatedCredential.
21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'app/models/sign_in/validated_credential.rb', line 21 def initialize(user_verification:, client_config:, credential_email:, user_attributes:, device_sso:) @user_verification = user_verification @client_config = client_config @credential_email = credential_email @user_attributes = user_attributes @device_sso = device_sso validate! end |
Instance Attribute Details
#client_config ⇒ Object (readonly)
Returns the value of attribute client_config.
7 8 9 |
# File 'app/models/sign_in/validated_credential.rb', line 7 def client_config @client_config end |
#credential_email ⇒ Object (readonly)
Returns the value of attribute credential_email.
7 8 9 |
# File 'app/models/sign_in/validated_credential.rb', line 7 def credential_email @credential_email end |
#device_sso ⇒ Object (readonly)
Returns the value of attribute device_sso.
7 8 9 |
# File 'app/models/sign_in/validated_credential.rb', line 7 def device_sso @device_sso end |
#user_attributes ⇒ Object (readonly)
Returns the value of attribute user_attributes.
7 8 9 |
# File 'app/models/sign_in/validated_credential.rb', line 7 def user_attributes @user_attributes end |
#user_verification ⇒ Object (readonly)
Returns the value of attribute user_verification.
7 8 9 |
# File 'app/models/sign_in/validated_credential.rb', line 7 def user_verification @user_verification end |
Instance Method Details
#persisted? ⇒ Boolean
35 36 37 |
# File 'app/models/sign_in/validated_credential.rb', line 35 def persisted? false end |