Sha256: 465fa8833d40f41780b6539c17d8e85e60fc4bd5d7964b1aeeaea7ceab7766ac

Contents?: true

Size: 895 Bytes

Versions: 3

Compression:

Stored size: 895 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module RDS

        require 'fog/aws/parsers/rds/security_group_parser'

        class AuthorizeDBSecurityGroupIngress < Fog::Parsers::AWS::RDS::SecurityGroupParser

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

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

          def end_element(name)
            case name
            when 'DBSecurityGroup' then
              @response['AuthorizeDBSecurityGroupIngressResult']['DBSecurityGroup'] = @security_group
              @security_group = fresh_security_group
            when 'RequestId'
              @response['ResponseMetadata'][name] = @value
            else
              super
            end

          end

        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-0.7.2 lib/fog/aws/parsers/rds/authorize_db_security_group_ingress.rb
fog-0.7.1 lib/fog/aws/parsers/rds/authorize_db_security_group_ingress.rb
fog-0.7.0 lib/fog/aws/parsers/rds/authorize_db_security_group_ingress.rb