Method: NVX::SDS::NVXFile#GetTags
- Defined in:
- lib/nvx/sds/nvxfile.rb
#GetTags ⇒ Object
Retrieve all of the metadata for the current path
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/nvx/sds/nvxfile.rb', line 100 def GetTags params = [APIParam.new("path", @path)] #get the metadata for the current path. doc = Transport.execute_command_post(APICommand.GetTags, params, @account_login) #empty the existing metadata array = Array.new if doc.root.elements["//Tag"] doc.root.elements.each("//Tag") do |tag| #add to the array the type and value of each in the xml. << tag.get_text.value end end return end |