Sha256: 2e0e23fe16bf37087108990c066b1ac18c04c9a44aa473d12a916fcdfe6f23e7

Contents?: true

Size: 591 Bytes

Versions: 2

Compression:

Stored size: 591 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module RDS

        # Base parser for ResponseMetadata, RequestId
        class Base < Fog::Parsers::Base

          def reset
            super
            @response = { 'ResponseMetadata' => {} }
          end

          def start_element(name, attrs = [])
            super
          end

          def end_element(name)
            case name
            when 'RequestId'
              @response['ResponseMetadata'][name] = value
            else
              super
            end
          end

        end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-1.22.0 lib/fog/aws/parsers/rds/base.rb
fog-1.21.0 lib/fog/aws/parsers/rds/base.rb