Changeset 247 for ruby/branches/0.5/lib/open_ehr
- Timestamp:
- Sep 6, 2009, 7:16:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.5/lib/open_ehr/rm/data_types/quantity.rb
r246 r247 55 55 attr_reader :magnitude, :magnitude_status 56 56 57 def initialize(magnitude, magnitude_status=nil, 58 normal_range=nil, normal_status = nil, 59 other_reference_ranges=nil) 60 super(normal_range, normal_status, other_reference_ranges) 61 self.magnitude = magnitude 62 self.magnitude_status = magnitude_status 57 def initialize(args = {}) 58 super(args) 59 self.magnitude = args[:magnitude] 60 self.magnitude_status = args[:magnitude_status] 63 61 end 64 62 65 63 def <=>(others) 66 @ value <=> others.value64 @magnitude <=> others.magnitude 67 65 end 68 66
Note:
See TracChangeset
for help on using the changeset viewer.