Class: Fog::Parsers::AWS::ELB::DescribeLoadBalancerAttributes
- Inherits:
-
Base
- Object
- Nokogiri::XML::SAX::Document
- Base
- Fog::Parsers::AWS::ELB::DescribeLoadBalancerAttributes
show all
- Defined in:
- lib/fog/aws/parsers/elb/describe_load_balancer_attributes.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
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/fog/aws/parsers/elb/describe_load_balancer_attributes.rb', line 21
def end_element(name)
case name
when 'Enabled'
if @cross_zone_load_balancing
@cross_zone_load_balancing['Enabled'] = value == 'true' ? true : false
end
when 'CrossZoneLoadBalancing'
@response['DescribeLoadBalancerAttributesResult']['LoadBalancerAttributes']['CrossZoneLoadBalancing'] = @cross_zone_load_balancing
@cross_zone_load_balancing = nil
when 'RequestId'
@response['ResponseMetadata'][name] = value
end
end
|
#reset ⇒ Object
8
9
10
11
|
# File 'lib/fog/aws/parsers/elb/describe_load_balancer_attributes.rb', line 8
def reset
@response = { 'DescribeLoadBalancerAttributesResult' => { 'LoadBalancerAttributes' => {} }, 'ResponseMetadata' => {} }
@stack = []
end
|
#start_element(name, attrs = []) ⇒ Object
13
14
15
16
17
18
19
|
# File 'lib/fog/aws/parsers/elb/describe_load_balancer_attributes.rb', line 13
def start_element(name, attrs = [])
super
case name
when 'CrossZoneLoadBalancing'
@cross_zone_load_balancing = {}
end
end
|