Sha256: 6881b366995e87d52d692e19f17b391bc12e1a1deba79a22583c6e472bd14b58

Contents?: true

Size: 433 Bytes

Versions: 50

Compression:

Stored size: 433 Bytes

Contents

module Fog
  module Parsers
    module Slicehost
      module Compute

        class GetImage < Fog::Parsers::Base

          def reset
            @response = {}
          end

          def end_element(name)
            case name
            when 'id'
              @response[name] = @value.to_i
            when 'name'
              @response[name] = @value
            end
          end

        end

      end
    end
  end
end

Version data entries

50 entries across 50 versions & 3 rubygems

Version Path
fog-0.7.2 lib/fog/compute/parsers/slicehost/get_image.rb
fog-0.7.1 lib/fog/compute/parsers/slicehost/get_image.rb
fog-0.7.0 lib/fog/compute/parsers/slicehost/get_image.rb
fog-0.6.0 lib/fog/compute/parsers/slicehost/get_image.rb
fog-0.5.3 lib/fog/compute/parsers/slicehost/get_image.rb
fog-0.5.2 lib/fog/compute/parsers/slicehost/get_image.rb
fog-0.5.1 lib/fog/compute/parsers/slicehost/get_image.rb
fog-0.5.0 lib/fog/compute/parsers/slicehost/get_image.rb
phpfog-fog-0.4.1.3 lib/fog/compute/parsers/slicehost/get_image.rb
phpfog-fog-0.4.1.2 lib/fog/compute/parsers/slicehost/get_image.rb
phpfog-fog-0.4.1.1 lib/fog/compute/parsers/slicehost/get_image.rb
phpfog-fog-0.4.1 lib/fog/compute/parsers/slicehost/get_image.rb
fog-0.4.1 lib/fog/compute/parsers/slicehost/get_image.rb
fog-0.4.0 lib/fog/slicehost/parsers/compute/get_image.rb
fog-0.3.34 lib/fog/slicehost/parsers/compute/get_image.rb
fog-0.3.33 lib/fog/slicehost/parsers/compute/get_image.rb
fog-0.3.32 lib/fog/slicehost/parsers/compute/get_image.rb
fog-0.3.31 lib/fog/slicehost/parsers/compute/get_image.rb
fog-0.3.30 lib/fog/slicehost/parsers/compute/get_image.rb
fog-0.3.29 lib/fog/slicehost/parsers/compute/get_image.rb