class Fog::Parsers::AWS::Elasticache::SubnetGroupParser

Public Instance Methods

end_element(name) click to toggle source
# File lib/fog/aws/parsers/elasticache/subnet_group_parser.rb, line 14
def end_element(name)
  case name
  when 'VpcId' then @cache_subnet_group['VpcId'] = value
  when 'SubnetGroupStatus' then @cache_subnet_group['SubnetGroupStatus'] = value
  when 'CacheSubnetGroupDescription' then @cache_subnet_group['CacheSubnetGroupDescription'] = value
  when 'CacheSubnetGroupName' then @cache_subnet_group['CacheSubnetGroupName'] = value
  when 'SubnetIdentifier' then @cache_subnet_group['Subnets'] << value
  when 'Marker'
    @response['DescribeCacheSubnetGroupsResult']['Marker'] = value
  when 'RequestId'
    @response['ResponseMetadata'][name] = value
  end
end
fresh_subnet_group() click to toggle source
# File lib/fog/aws/parsers/elasticache/subnet_group_parser.rb, line 28
def fresh_subnet_group
  {'Subnets' => []}
end
reset() click to toggle source
# File lib/fog/aws/parsers/elasticache/subnet_group_parser.rb, line 6
def reset
  @cache_subnet_group = fresh_subnet_group
end
start_element(name, attrs = []) click to toggle source
Calls superclass method
# File lib/fog/aws/parsers/elasticache/subnet_group_parser.rb, line 10
def start_element(name, attrs = [])
  super
end