Class: Fog::Parsers::AWS::ELB::DescribeLoadBalancerPolicyTypes
- Inherits:
-
Base
- Object
- Nokogiri::XML::SAX::Document
- Base
- Fog::Parsers::AWS::ELB::DescribeLoadBalancerPolicyTypes
show all
- Defined in:
- lib/fog/aws/parsers/elb/describe_load_balancer_policy_types.rb
Instance Attribute Summary
Attributes inherited from Base
#response
Instance Method Summary
collapse
Methods inherited from Base
#attr_value, #characters, #initialize, #value
Instance Method Details
permalink
#end_element(name) ⇒ Object
[View source]
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# File 'lib/fog/aws/parsers/elb/describe_load_balancer_policy_types.rb', line 31
def end_element(name)
case name
when 'member'
if @in_policy_attribute_types
@policy_type['PolicyAttributeTypeDescriptions'] << @policy_attribute_type_description
reset_policy_attribute_type_description
elsif !@in_policy_attribute_types
@results['PolicyTypeDescriptions'] << @policy_type
reset_policy_type
end
when 'Description'
if @in_policy_attribute_types
@policy_attribute_type_description[name] = value
else
@policy_type[name] = value
end
when 'PolicyTypeName'
@policy_type[name] = value
when 'PolicyAttributeTypeDescriptions'
@in_policy_attribute_types = false
when 'AttributeName', 'AttributeType', 'Cardinality', 'DefaultValue'
@policy_attribute_type_description[name] = value
when 'RequestId'
@response['ResponseMetadata'][name] = value
when 'DescribeLoadBalancerPolicyTypesResponse'
@response['DescribeLoadBalancerPolicyTypesResult'] = @results
end
end
|
[View source]
8
9
10
11
12
13
|
# File 'lib/fog/aws/parsers/elb/describe_load_balancer_policy_types.rb', line 8
def reset
reset_policy_type
reset_policy_attribute_type_description
@results = { 'PolicyTypeDescriptions' => [] }
@response = { 'DescribeLoadBalancerPolicyTypesResult' => {}, 'ResponseMetadata' => {} }
end
|
permalink
#reset_policy_attribute_type_description ⇒ Object
[View source]
19
20
21
|
# File 'lib/fog/aws/parsers/elb/describe_load_balancer_policy_types.rb', line 19
def reset_policy_attribute_type_description
@policy_attribute_type_description = { 'AttributeName' => '', 'AttributeType' => '', 'Cardinality' => '', 'DefaultValue' => '', 'Description' => '' }
end
|
permalink
#reset_policy_type ⇒ Object
[View source]
15
16
17
|
# File 'lib/fog/aws/parsers/elb/describe_load_balancer_policy_types.rb', line 15
def reset_policy_type
@policy_type = { 'Description' => '', 'PolicyAttributeTypeDescriptions' => [], 'PolicyTypeName' => '' }
end
|
permalink
#start_element(name, attrs = []) ⇒ Object
[View source]
23
24
25
26
27
28
29
|
# File 'lib/fog/aws/parsers/elb/describe_load_balancer_policy_types.rb', line 23
def start_element(name, attrs = [])
super
case name
when 'PolicyAttributeTypeDescriptions'
@in_policy_attribute_types = true
end
end
|