Ignore:
Timestamp:
Sep 28, 2009, 8:16:41 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

feeder_audit_details completed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/rm/data_types/quantity.rb

    r252 r308  
    151151          def add(a_diff)
    152152            type_check(a_diff)
    153             return result_builder(DvAbsoluteQuantity,
     153            return result_builder(self.class,
    154154                                  @magnitude+a_diff.magnitude)
    155155          end
     
    157157          def diff(other)
    158158            type_check(other)
    159             return result_builder(DvAmount,
     159            return result_builder(self.class,
    160160                                  (@magnitude-other.magnitude).abs)
    161161          end
     
    163163          def subtract(a_diff)
    164164            type_check(a_diff)
    165             return result_builder(DvAbsoluteQuantity,
     165            return result_builder(self.class,
    166166                                  @magnitude-a_diff.magnitude)
    167167          end
Note: See TracChangeset for help on using the changeset viewer.