Sha256: 6e0c9fccc63d107ff771b20d43f1c6f03cc0ebdb15728fecce941189a4bb9bcf

Contents?: true

Size: 807 Bytes

Versions: 2

Compression:

Stored size: 807 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module RDS

        require 'fog/aws/parsers/rds/snapshot_parser'

        class DeleteDBSnapshot < Fog::Parsers::AWS::RDS::SnapshotParser

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

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

          def end_element(name)
            case name
            when 'RequestId'
              @response['ResponseMetadata'][name] = value
            when 'DBSnapshot'
              @response['DeleteDBSnapshotResult']['DBSnapshot'] = @db_snapshot
              @db_snapshot = fresh_snapshot
            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/delete_db_snapshot.rb
fog-1.21.0 lib/fog/aws/parsers/rds/delete_db_snapshot.rb