Class: HCA::UserAttributes

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/hca/user_attributes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authn_contextObject (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

#edipiObject (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

#genderObject (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_uuidObject (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_uuidObject (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_icnObject (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

#uuidObject



23
24
25
# File 'lib/hca/user_attributes.rb', line 23

def uuid
  SecureRandom.uuid
end