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.0.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/rds/create_db_snapshot.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-0.11.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-0.10.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog4encbs-0.9.0.1 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog4encbs-0.9.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-0.9.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-0.8.2 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-0.8.1 lib/fog/aws/parsers/rds/create_db_snapshot.rb
fog-0.8.0 lib/fog/aws/parsers/rds/create_db_snapshot.rb