Class: Renalware::Patients::PatientHospitalIdentifiers::Identifier

Inherits:
Struct
  • Object
show all
Defined in:
app/models/renalware/patients/patient_hospital_identifiers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



23
24
25
# File 'app/models/renalware/patients/patient_hospital_identifiers.rb', line 23

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



23
24
25
# File 'app/models/renalware/patients/patient_hospital_identifiers.rb', line 23

def name
  @name
end

Instance Method Details

#to_sObject



24
25
26
27
28
# File 'app/models/renalware/patients/patient_hospital_identifiers.rb', line 24

def to_s
  return "" unless id

  "#{name}: #{id}"
end