Class: SignIn::ValidatedCredential

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
app/models/sign_in/validated_credential.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_configObject (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_emailObject (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_ssoObject (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_attributesObject (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_verificationObject (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

Returns:

  • (Boolean)


35
36
37
# File 'app/models/sign_in/validated_credential.rb', line 35

def persisted?
  false
end