Method: Azure::Storage::Common::Service::Serialization::ClassMethods#cors_from_xml
- Defined in:
- lib/azure/storage/common/service/serialization.rb
permalink #cors_from_xml(xml) ⇒ Object
[View source]
236 237 238 239 240 241 242 243 |
# File 'lib/azure/storage/common/service/serialization.rb', line 236 def cors_from_xml(xml) xml = slopify(xml) expect_node("Cors", xml) Cors.new do |cors| cors.cors_rules = xml.children.to_a.map { |child| cors_rule_from_xml(child) } end end |