module NexusCli::N3Metadata
def create_metadata_hash(source, target={})
-
target
(Hash
) -- The target hash to merge with the source hash (optional) -
source
(Hash
) -- The source hash of custom metadata key:value pairs
def create_metadata_hash(source, target={}) request = [] source.merge(target).each do |key, value| request.push({:namespace => "urn:nexus/user#", :key => key, :value => value, :readOnly => false}) unless value.empty? end return request end