Class: Fog::Parsers::AWS::Elasticache::SubnetGroupParser
- Inherits:
-
Base
- Object
- Nokogiri::XML::SAX::Document
- Base
- Fog::Parsers::AWS::Elasticache::SubnetGroupParser
show all
- Defined in:
- lib/fog/aws/parsers/elasticache/subnet_group_parser.rb
Instance Attribute Summary
Attributes inherited from Base
#response
Instance Method Summary
collapse
Methods inherited from Base
#attr_value, #characters, #end_element_namespace, #initialize, #start_element_namespace, #value
Instance Method Details
#end_element(name) ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/fog/aws/parsers/elasticache/subnet_group_parser.rb', line 16
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 ⇒ Object
30
31
32
|
# File 'lib/fog/aws/parsers/elasticache/subnet_group_parser.rb', line 30
def fresh_subnet_group
{'Subnets' => []}
end
|
#reset ⇒ Object
8
9
10
|
# File 'lib/fog/aws/parsers/elasticache/subnet_group_parser.rb', line 8
def reset
@cache_subnet_group = fresh_subnet_group
end
|
#start_element(name, attrs = []) ⇒ Object
12
13
14
|
# File 'lib/fog/aws/parsers/elasticache/subnet_group_parser.rb', line 12
def start_element(name, attrs = [])
super
end
|