Sha256: da7d9b59ee401e94122c3da92b962a7baa93d0367a154e567e279b1e7d4d0a8a

Contents?: true

Size: 796 Bytes

Versions: 2

Compression:

Stored size: 796 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module RDS

        require 'fog/aws/parsers/rds/db_parser'

        class RebootDBInstance < Fog::Parsers::AWS::RDS::DbParser

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

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

          def end_element(name)
            case name

            when 'DBInstance'
              @response['RebootDBInstanceResult']['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

2 entries across 2 versions & 1 rubygems

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