Sha256: 02bddff6d6055748a7f329e337e642032ef93090d2e183135593d54fefae81e9

Contents?: true

Size: 892 Bytes

Versions: 5

Compression:

Stored size: 892 Bytes

Contents

module Fog
  module Parsers
    module AWS
      module Elasticache

        require 'fog/aws/parsers/elasticache/subnet_group_parser'

        class CreateCacheSubnetGroup < Fog::Parsers::AWS::Elasticache::SubnetGroupParser

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

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

          def end_element(name)
            case name
            when 'DBSubnetGroup' then
              @response['CreateCacheSubnetGroupResult']['CacheSubnetGroup'] = @cache_subnet_group
              @cache_subnet_group = fresh_subnet_group
            when 'RequestId'
              @response['ResponseMetadata'][name] = value
            else
              super
            end

          end

        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
fog-1.22.0 lib/fog/aws/parsers/elasticache/create_cache_subnet_group.rb
fog-1.21.0 lib/fog/aws/parsers/elasticache/create_cache_subnet_group.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/aws/parsers/elasticache/create_cache_subnet_group.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/aws/parsers/elasticache/create_cache_subnet_group.rb
fog-1.20.0 lib/fog/aws/parsers/elasticache/create_cache_subnet_group.rb