Class: Renalware::Patients::PatientHospitalIdentifiers::Identifier
- Inherits:
-
Struct
- Object
- Struct
- Renalware::Patients::PatientHospitalIdentifiers::Identifier
- Defined in:
- app/models/renalware/patients/patient_hospital_identifiers.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
23 24 25 |
# File 'app/models/renalware/patients/patient_hospital_identifiers.rb', line 23 def id @id end |
#name ⇒ Object
Returns the value of attribute name
23 24 25 |
# File 'app/models/renalware/patients/patient_hospital_identifiers.rb', line 23 def name @name end |
Instance Method Details
#to_s ⇒ Object
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 |