Changeset 279 for ruby/branches/0.5
- Timestamp:
- Sep 18, 2009, 4:44:40 PM (15 years ago)
- Location:
- ruby/branches/0.5
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ruby/branches/0.5/lib/open_ehr/rm/support/identification.rb
r278 r279 255 255 end 256 256 257 def value 258 return @object_id.value + '::' + 259 @creating_system_id.value + '::' + 260 @version_tree_id.value 261 end 262 257 263 def object_id=(object_id) 258 264 raise ArgumentError, 'object_id is mandatory' if object_id.nil? … … 280 286 281 287 class LocatableRef < ObjectRef 282 attr_reader : namespace, :type, :id, :path283 284 def initialize( namespace, type, id, path)285 super( namespace, type, id)286 self.path = path288 attr_reader :path 289 290 def initialize(args = {}) 291 super(args) 292 self.path = args[:path] 287 293 end 288 294 -
ruby/branches/0.5/spec/lib/open_ehr/rm/support/identification/object_ref_spec.rb
r275 r279 8 8 :namespace => 'local', 9 9 :type => 'PARTY') 10 end 11 12 it 'id.value should deadbeefbabe' do 13 @object_ref.id.value.should == 'deadbeefbabe' 10 14 end 11 15 -
ruby/branches/0.5/spec/lib/open_ehr/rm/support/identification/object_version_id_spec.rb
r278 r279 10 10 it 'should be an instance of ObjectVersionID' do 11 11 @object_version_id.should be_an_instance_of ObjectVersionID 12 end 13 14 it 'value should be F7C5C7B7-75DB-4b39-9A1E-C0BA9BFDBDEC::87284370-2D4B-4e3d-A3F3-F303D2F4F34B::2' do 15 @object_version_id.value.should == 'F7C5C7B7-75DB-4b39-9A1E-C0BA9BFDBDEC::87284370-2D4B-4e3d-A3F3-F303D2F4F34B::2' 12 16 end 13 17
Note:
See TracChangeset
for help on using the changeset viewer.