Method: Azure::Storage::Common::Service::Serialization::ClassMethods#signed_identifiers_from_xml

Defined in:
lib/azure/storage/common/service/serialization.rb

#signed_identifiers_from_xml(xml) ⇒ Object


44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/azure/storage/common/service/serialization.rb', line 44

def signed_identifiers_from_xml(xml)
  xml = slopify(xml)
  expect_node("SignedIdentifiers", xml)

  identifiers = []
  return identifiers unless (xml > "SignedIdentifier").any?

  if xml.SignedIdentifier.count == 0
    identifiers.push(signed_identifier_from_xml(xml.SignedIdentifier))
  else
    xml.SignedIdentifier.each { |identifier_node|
      identifiers.push(signed_identifier_from_xml(identifier_node))
    }
  end

  identifiers
end