Permalink
Browse files

adding repository_unique_id to metadata object, only used when fillin…

…g in from a query response
  • Loading branch information...
1 parent 4bfa6ee commit 7832d3c52045981d623351a1fae6d868b559c51a @rdingwell rdingwell committed Mar 5, 2009
Showing with 3 additions and 1 deletion.
  1. +2 −1 lib/xds/metadata.rb
  2. +1 −0 test/xds/registry_stored_query_response_test.rb
View
@@ -30,7 +30,7 @@ class Metadata
attr_accessor :id
attr_accessor :ss_unique_id
attr_accessor :source_id
-
+ attr_accessor :repository_unique_id
def to_soap(builder)
@@ -137,6 +137,7 @@ def load_from_extrinsic_object(eo_node)
@type_code.from_extrinsic_object(eo_node)
@unique_id = get_external_identifier_value(eo_node, EXTERNAL_ID_SCHEMES[:unique_id][:scheme])
@uri = get_slot_value(eo_node, 'URI')
+ @repository_unique_id = get_slot_value(eo_node,"repositoryUniqueId")
end
def external_identifier(builder,name)
@@ -22,6 +22,7 @@ class RegistryStoredQueryResponseTest < Test::Unit::TestCase
md = rmd.first
assert_equal '^Smitty^Gerald^^^', md.author.person
assert_equal 'Connect-a-thon classCodes', md.class_code.coding_scheme
+ assert_equal '1.19.6.24.109.42.1.5', md.repository_unique_id
end
end
end

0 comments on commit 7832d3c

Please sign in to comment.