Sha256: fe7f57efc88543541ff9c7f864466e635773698aea3391c773d86d2040eae7e6

Contents?: true

Size: 930 Bytes

Versions: 111

Compression:

Stored size: 930 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module RDS

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

          def reset
            @response = { 'DescribeDBInstancesResult' => {'DBInstances' => []}, 'ResponseMetadata' => {} }
            super
          end

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

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

Version data entries

111 entries across 111 versions & 18 rubygems

Version Path
fog-test-again-1.6.0 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-test-me-1.10.0 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-parser-fix-1.6.0 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-1.10.0 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-1.9.0 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/aws/parsers/rds/describe_db_instances.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-sgonyea-1.8.1 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-1.8.0 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-1.7.0 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-1.6.0 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-1.5.0 lib/fog/aws/parsers/rds/describe_db_instances.rb
fog-1.4.0 lib/fog/aws/parsers/rds/describe_db_instances.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/rds/describe_db_instances.rb
michiels-fog-1.3.1 lib/fog/aws/parsers/rds/describe_db_instances.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/parsers/rds/describe_db_instances.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/rds/describe_db_instances.rb