Sha256: 6e01353eef531daba39a87c77c7d974b24099f0b31b41ec99e521a7d12cbf29a

Contents?: true

Size: 340 Bytes

Versions: 21

Compression:

Stored size: 340 Bytes

Contents

module Clinical
  class Condition
    attr_accessor :name
    include HappyMapper

    def to_s
      self.name || ""
    end

    class << self
      def parse(xml, options)
        xml.find("condition").collect do |n|
          item = new
          item.name = n.content.chomp.strip
          item
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
dpickett-clinical-0.1.4 lib/clinical/condition.rb
dpickett-clinical-0.1.5 lib/clinical/condition.rb
dpickett-clinical-0.2.0 lib/clinical/condition.rb
dpickett-clinical-0.2.1 lib/clinical/condition.rb
dpickett-clinical-0.2.10 lib/clinical/condition.rb
dpickett-clinical-0.2.3 lib/clinical/condition.rb
dpickett-clinical-0.2.4 lib/clinical/condition.rb
dpickett-clinical-0.2.5 lib/clinical/condition.rb
dpickett-clinical-0.2.6 lib/clinical/condition.rb
dpickett-clinical-0.2.7 lib/clinical/condition.rb
dpickett-clinical-0.2.8 lib/clinical/condition.rb
dpickett-clinical-0.2.9 lib/clinical/condition.rb
clinical-0.2.11 lib/clinical/condition.rb
clinical-0.2.10 lib/clinical/condition.rb
clinical-0.2.9 lib/clinical/condition.rb
clinical-0.2.8 lib/clinical/condition.rb
clinical-0.2.7 lib/clinical/condition.rb
clinical-0.2.6 lib/clinical/condition.rb
clinical-0.2.5 lib/clinical/condition.rb
clinical-0.2.4 lib/clinical/condition.rb