Class: HCA::UserAttributes
- Inherits:
-
Object
- Object
- HCA::UserAttributes
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/hca/user_attributes.rb
Instance Attribute Summary collapse
-
#authn_context ⇒ Object
readonly
These attributes, along with uuid, are required by mpi/service.
-
#edipi ⇒ Object
readonly
These attributes, along with uuid, are required by mpi/service.
-
#gender ⇒ Object
readonly
These attributes, along with uuid, are required by mpi/service.
-
#idme_uuid ⇒ Object
readonly
These attributes, along with uuid, are required by mpi/service.
-
#logingov_uuid ⇒ Object
readonly
These attributes, along with uuid, are required by mpi/service.
-
#mhv_icn ⇒ Object
readonly
These attributes, along with uuid, are required by mpi/service.
Instance Method Summary collapse
Instance Attribute Details
#authn_context ⇒ Object (readonly)
These attributes, along with uuid, are required by mpi/service. They can be nil as they’re not part of the HCA form
17 18 19 |
# File 'lib/hca/user_attributes.rb', line 17 def authn_context @authn_context end |
#edipi ⇒ Object (readonly)
These attributes, along with uuid, are required by mpi/service. They can be nil as they’re not part of the HCA form
17 18 19 |
# File 'lib/hca/user_attributes.rb', line 17 def edipi @edipi end |
#gender ⇒ Object (readonly)
These attributes, along with uuid, are required by mpi/service. They can be nil as they’re not part of the HCA form
17 18 19 |
# File 'lib/hca/user_attributes.rb', line 17 def gender @gender end |
#idme_uuid ⇒ Object (readonly)
These attributes, along with uuid, are required by mpi/service. They can be nil as they’re not part of the HCA form
17 18 19 |
# File 'lib/hca/user_attributes.rb', line 17 def idme_uuid @idme_uuid end |
#logingov_uuid ⇒ Object (readonly)
These attributes, along with uuid, are required by mpi/service. They can be nil as they’re not part of the HCA form
17 18 19 |
# File 'lib/hca/user_attributes.rb', line 17 def logingov_uuid @logingov_uuid end |
#mhv_icn ⇒ Object (readonly)
These attributes, along with uuid, are required by mpi/service. They can be nil as they’re not part of the HCA form
17 18 19 |
# File 'lib/hca/user_attributes.rb', line 17 def mhv_icn @mhv_icn end |
Instance Method Details
#ssn=(new_ssn) ⇒ Object
19 20 21 |
# File 'lib/hca/user_attributes.rb', line 19 def ssn=(new_ssn) super(new_ssn&.gsub(/\D/, '')) end |
#uuid ⇒ Object
23 24 25 |
# File 'lib/hca/user_attributes.rb', line 23 def uuid SecureRandom.uuid end |