Sha256: 6472214a1caf4a81e4499c01cd505f2868ef28afedb69bed0a8e35fdf6296034
Contents?: true
Size: 496 Bytes
Versions: 14
Compression:
Stored size: 496 Bytes
Contents
class TerremarkParser < Fog::Parsers::Base def extract_attributes(attributes_xml) attributes = {} until attributes_xml.empty? if attributes_xml.first.is_a?(Array) until attributes_xml.first.empty? attribute = attributes_xml.first.shift attributes[attribute.localname] = attribute.value end else attribute = attributes_xml.shift attributes[attribute.localname] = attribute.value end end attributes end end
Version data entries
14 entries across 14 versions & 4 rubygems