Sha256: e54f6206a821e95f5fd2a2e4ec071b4bf9d2b32eb5d64e0ff8357c26c8206a28

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

module Fog
  module Parsers
    module AWS
      module Elasticache

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

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

          def reset
            @response = { 'DescribeCacheSubnetGroupsResult' => {'CacheSubnetGroups' => []}, 'ResponseMetadata' => {} }
            super
          end

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

          def end_element(name)
            case name
            when 'CacheSubnetGroup'
              @response['DescribeCacheSubnetGroupsResult']['CacheSubnetGroups'] << @cache_subnet_group
              @cache_subnet_group = fresh_subnet_group
            when 'Marker'
              @response['DescribeCacheSubnetGroupsResult']['Marker'] = value
            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/describe_cache_subnet_groups.rb
fog-1.21.0 lib/fog/aws/parsers/elasticache/describe_cache_subnet_groups.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/aws/parsers/elasticache/describe_cache_subnet_groups.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/aws/parsers/elasticache/describe_cache_subnet_groups.rb
fog-1.20.0 lib/fog/aws/parsers/elasticache/describe_cache_subnet_groups.rb