77
78
79
80
81
82
83
84
85
86
87
|
# File 'lib/azure/storage/blob/serialization.rb', line 77
def self.container_from_xml(xml)
xml = slopify(xml)
expect_node("Container", xml)
Container::Container.new do |container|
container.name = xml.Name.text if (xml > "Name").any?
container.properties = container_properties_from_xml(xml.Properties) if (xml > "Properties").any?
container.metadata = metadata_from_xml(xml.Metadata) if (xml > "Metadata").any?
container.public_access_level = public_access_level_from_properties_xml(xml.Properties) if (xml > "Properties").any?
end
end
|