Sha256: 1c5679f9f5434cef5410e896ee761ba21c15eeffc70b7fa40d56d991078bc2eb

Contents?: true

Size: 759 Bytes

Versions: 1

Compression:

Stored size: 759 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module Elasticache
        require 'rackspace-fog/aws/parsers/elasticache/security_group_parser'

        class SingleSecurityGroup < SecurityGroupParser

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

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

          def end_element(name)
            case name
            when 'CacheSecurityGroup'
              @response[name] = @security_group
              reset_security_group

            when 'RequestId'
              @response['ResponseMetadata'][name] = value
            else
              super
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/parsers/elasticache/single_security_group.rb