Class: Clinical::Condition
- Inherits:
-
Object
- Object
- Clinical::Condition
- Includes:
- HappyMapper
- Defined in:
- lib/clinical/condition.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/clinical/condition.rb', line 3 def name @name end |
Class Method Details
.parse(xml, options) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/clinical/condition.rb', line 11 def parse(xml, ) xml.find("condition").collect do |n| item = new item.name = n.content.chomp.strip item end end |
Instance Method Details
#to_s ⇒ Object
6 7 8 |
# File 'lib/clinical/condition.rb', line 6 def to_s self.name || "" end |