Sha256: 9593728f846e573d0363bdea092d72f5b7f7b2f77ffc63057a4cf05cd6c7a71f

Contents?: true

Size: 828 Bytes

Versions: 113

Compression:

Stored size: 828 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module RDS

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

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

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

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

          def end_element(name)
            case name
            when 'DBInstance'
              @response['RestoreDBInstanceFromDBSnapshot']['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

113 entries across 113 versions & 18 rubygems

Version Path
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
fog-1.0.0 lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
fog-0.11.0 lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
fog-0.10.0 lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
fog4encbs-0.9.0.1 lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
fog4encbs-0.9.0 lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
fog-0.9.0 lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
fog-0.8.2 lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
fog-0.8.1 lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
fog-0.8.0 lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb