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

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/terremark/parser.rb
nsidc-fog-1.24.1 lib/fog/terremark/parser.rb
fog-1.24.0 lib/fog/terremark/parser.rb
ns-fog-1.22.11 lib/fog/terremark/parser.rb
ns-fog-1.22.10 lib/fog/terremark/parser.rb
ns-fog-1.22.9 lib/fog/terremark/parser.rb
ns-fog-1.22.8 lib/fog/terremark/parser.rb
ns-fog-1.22.7 lib/fog/terremark/parser.rb
ns-fog-1.22.6 lib/fog/terremark/parser.rb
fog-1.23.0 lib/fog/terremark/parser.rb
ns-fog-1.22.4 lib/fog/terremark/parser.rb
ns-fog-1.22.3 lib/fog/terremark/parser.rb
ns-fog-1.22.2 lib/fog/terremark/parser.rb
fog-1.22.1 lib/fog/terremark/parser.rb