Class: Quincy::Patient
- Inherits:
-
Struct
- Object
- Struct
- Quincy::Patient
- Defined in:
- lib/quincy.rb
Overview
a Struct containing patient information
Instance Attribute Summary collapse
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#nr ⇒ Object
Returns the value of attribute nr.
Instance Method Summary collapse
Instance Attribute Details
#first_name ⇒ Object
Returns the value of attribute first_name
11 12 13 |
# File 'lib/quincy.rb', line 11 def first_name @first_name end |
#last_name ⇒ Object
Returns the value of attribute last_name
11 12 13 |
# File 'lib/quincy.rb', line 11 def last_name @last_name end |
#nr ⇒ Object
Returns the value of attribute nr
11 12 13 |
# File 'lib/quincy.rb', line 11 def nr @nr end |
Instance Method Details
#name ⇒ Object
16 17 18 |
# File 'lib/quincy.rb', line 16 def name [last_name, first_name].join(", "); end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/quincy.rb', line 12 def to_s "#{"%6d"%nr}: #{name}" end |