Ignore:
Timestamp:
Sep 18, 2009, 4:44:40 PM (15 years ago)
Author:
KOBAYASHI, Shinji
Message:

support/identification package completely move to rspec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ruby/branches/0.5/lib/open_ehr/rm/support/identification.rb

    r278 r279  
    255255          end
    256256
     257          def value
     258            return @object_id.value + '::' +
     259              @creating_system_id.value + '::' +
     260              @version_tree_id.value
     261          end
     262
    257263          def object_id=(object_id)
    258264            raise ArgumentError, 'object_id is mandatory' if object_id.nil?
     
    280286
    281287        class LocatableRef < ObjectRef
    282           attr_reader :namespace, :type, :id, :path
    283 
    284           def initialize(namespace, type, id, path)
    285             super(namespace, type, id)
    286             self.path = path
     288          attr_reader :path
     289
     290          def initialize(args = {})
     291            super(args)
     292            self.path = args[:path]
    287293          end
    288294
Note: See TracChangeset for help on using the changeset viewer.