Sha256: 77f23568b2e1ce7309a7e91a979fbb32b1c6b55f5cf8ade1a3231319bc3192c8

Contents?: true

Size: 822 Bytes

Versions: 111

Compression:

Stored size: 822 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module RDS
        require 'fog/aws/parsers/rds/snapshot_parser'
        
        class CreateDBSnapshot < Fog::Parsers::AWS::RDS::SnapshotParser

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

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

          def end_element(name)
            case name
            when 'DBSnapshot' then 
              @response['CreateDBSnapshotResult']['DBSnapshot'] = @db_snapshot
              @db_snapshot = fresh_snapshot
            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-1.15.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb
gapinc-fog-1.14.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-1.14.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-1.13.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb
gapinc-fog-1.12.1.2 lib/fog/aws/parsers/rds/create_db_snapshot.rb
gapinc-fog-1.12.1.1 lib/fog/aws/parsers/rds/create_db_snapshot.rb
gapinc-fog-1.12.1a lib/fog/aws/parsers/rds/create_db_snapshot.rb
gapinc-fog-1.12.1 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-1.12.1 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-1.12.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb
hpfog-0.0.20 lib/fog/aws/parsers/rds/create_db_snapshot.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/parsers/rds/create_db_snapshot.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-nirvanix-1.8.2 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-1.11.1 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-1.11.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-nirvanix-1.8.1 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-1.10.1 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-parser-fix-1.6.1 lib/fog/aws/parsers/rds/create_db_snapshot.rb