Sha256: 701537fbf7875597e85157b8e6a506e2b37e6ea330ba931153e9a99838c72540

Contents?: true

Size: 257 Bytes

Versions: 35

Compression:

Stored size: 257 Bytes

Contents

module Renalware
  class BloodGroup < NestedAttribute
    attribute :group, Document::Enum, enums: %i(A B O AB)
    attribute :rhesus, Document::Enum, enums: %i(positive negative)

    def to_s
      "#{group&.text} #{rhesus&.text}".strip
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/documents/renalware/blood_group.rb
renalware-core-2.0.15 app/documents/renalware/blood_group.rb
renalware-core-2.0.14 app/documents/renalware/blood_group.rb
renalware-core-2.0.13 app/documents/renalware/blood_group.rb
renalware-core-2.0.12 app/documents/renalware/blood_group.rb
renalware-core-2.0.11 app/documents/renalware/blood_group.rb
renalware-core-2.0.9 app/documents/renalware/blood_group.rb
renalware-core-2.0.8 app/documents/renalware/blood_group.rb
renalware-core-2.0.7 app/documents/renalware/blood_group.rb
renalware-core-2.0.5 app/documents/renalware/blood_group.rb
renalware-core-2.0.4 app/documents/renalware/blood_group.rb
renalware-core-2.0.3 app/documents/renalware/blood_group.rb
renalware-core-2.0.2 app/documents/renalware/blood_group.rb
renalware-core-2.0.1 app/documents/renalware/blood_group.rb
renalware-core-2.0.0 app/documents/renalware/blood_group.rb
renalware-core-2.0.0.pre.rc13 app/documents/renalware/blood_group.rb
renalware-core-2.0.0.pre.rc11 app/documents/renalware/blood_group.rb
renalware-core-2.0.0.pre.rc10 app/documents/renalware/blood_group.rb
renalware-core-2.0.0.pre.rc9 app/documents/renalware/blood_group.rb
renalware-core-2.0.0.pre.rc8 app/documents/renalware/blood_group.rb