Sha256: ba58ff0c8b54866deb81096d06b2d6c0658aedb0f1abe50a6f9b931e10fbd823

Contents?: true

Size: 825 Bytes

Versions: 1

Compression:

Stored size: 825 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module RDS

        require 'rackspace-fog/aws/parsers/rds/db_parser'
        
        class ModifyDBInstance < Fog::Parsers::AWS::RDS::DbParser

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/parsers/rds/modify_db_instance.rb