Sha256: 98c6fcf7e9f573ecb976215ccc6cf7b15ee25a06b4a9a08301a03ee3e0739ac8

Contents?: true

Size: 362 Bytes

Versions: 60

Compression:

Stored size: 362 Bytes

Contents

module Fog
  module Parsers
    class Base < Nokogiri::XML::SAX::Document

      attr_reader :response

      def initialize
        reset
      end

      def reset
        @response = {}
      end

      def characters(string)
        @value << string.strip
      end

      def start_element(name, attrs = [])
        @value = ''
      end

    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
fog-0.0.89 lib/fog/parser.rb
fog-0.0.88 lib/fog/parser.rb
fog-0.0.87 lib/fog/parser.rb
fog-0.0.86 lib/fog/parser.rb
fog-0.0.85 lib/fog/parser.rb
fog-0.0.84 lib/fog/parser.rb
fog-0.0.83 lib/fog/parser.rb
fog-0.0.82 lib/fog/parser.rb
fog-0.0.81 lib/fog/parser.rb
fog-0.0.80 lib/fog/parser.rb
fog-0.0.79 lib/fog/parser.rb
fog-0.0.78 lib/fog/parser.rb
fog-0.0.77 lib/fog/parser.rb
fog-0.0.76 lib/fog/parser.rb
fog-0.0.75 lib/fog/parser.rb
fog-0.0.74 lib/fog/parser.rb
fog-0.0.73 lib/fog/parser.rb
fog-0.0.72 lib/fog/parser.rb
fog-0.0.71 lib/fog/parser.rb
fog-0.0.70 lib/fog/parser.rb