Class: Fog::Parsers::AWS::RDS::SubnetGroupParser
- Inherits:
-
Base
- Object
- Nokogiri::XML::SAX::Document
- Base
- Fog::Parsers::AWS::RDS::SubnetGroupParser
show all
- Defined in:
- lib/fog/aws/parsers/rds/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
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/fog/aws/parsers/rds/subnet_group_parser.rb', line 14
def end_element(name)
case name
when 'VpcId' then @db_subnet_group['VpcId'] = value
when 'SubnetGroupStatus' then @db_subnet_group['SubnetGroupStatus'] = value
when 'DBSubnetGroupDescription' then @db_subnet_group['DBSubnetGroupDescription'] = value
when 'DBSubnetGroupName' then @db_subnet_group['DBSubnetGroupName'] = value
when 'SubnetIdentifier' then @db_subnet_group['Subnets'] << value
when 'Marker'
@response['DescribeDBSubnetGroupsResult']['Marker'] = value
when 'RequestId'
@response['ResponseMetadata'][name] = value
end
end
|
#fresh_subnet_group ⇒ Object
28
29
30
|
# File 'lib/fog/aws/parsers/rds/subnet_group_parser.rb', line 28
def fresh_subnet_group
{'Subnets' => []}
end
|
#reset ⇒ Object
6
7
8
|
# File 'lib/fog/aws/parsers/rds/subnet_group_parser.rb', line 6
def reset
@db_subnet_group = fresh_subnet_group
end
|
#start_element(name, attrs = []) ⇒ Object
10
11
12
|
# File 'lib/fog/aws/parsers/rds/subnet_group_parser.rb', line 10
def start_element(name, attrs = [])
super
end
|