Class/Module Index [+]

Quicksearch

Fog::Parsers::AWS::ELB::DescribeLoadBalancerPolicies

Public Instance Methods

end_element(name) click to toggle source
# File lib/fog/aws/parsers/elb/describe_load_balancer_policies.rb, line 31
def end_element(name)
  case name
  when 'member'
    if @in_policy_attributes
      @policy['PolicyAttributeDescriptions'] << @policy_attribute_description
      reset_policy_attribute_description
    elsif !@in_policy_attributes
      @results['PolicyDescriptions'] << @policy
      reset_policy
    end

  when 'PolicyName', 'PolicyTypeName'
    @policy[name] = value

  when 'PolicyAttributeDescriptions'
    @in_policy_attributes = false

  when 'AttributeName', 'AttributeValue'
    @policy_attribute_description[name] = value

  when 'RequestId'
    @response['ResponseMetadata'][name] = value

  when 'DescribeLoadBalancerPoliciesResponse'
    @response['DescribeLoadBalancerPoliciesResult'] = @results
  end
end
reset() click to toggle source
# File lib/fog/aws/parsers/elb/describe_load_balancer_policies.rb, line 8
def reset
  reset_policy
  reset_policy_attribute_description
  @results = { 'PolicyDescriptions' => [] }
  @response = { 'DescribeLoadBalancerPoliciesResult' => {}, 'ResponseMetadata' => {} }
end
reset_policy() click to toggle source
# File lib/fog/aws/parsers/elb/describe_load_balancer_policies.rb, line 15
def reset_policy
  @policy = { 'PolicyAttributeDescriptions' => [], 'PolicyName' => '', 'PolicyTypeName' => '' }
end
reset_policy_attribute_description() click to toggle source
# File lib/fog/aws/parsers/elb/describe_load_balancer_policies.rb, line 19
def reset_policy_attribute_description
  @policy_attribute_description = { 'AttributeName' => '', 'AttributeValue' => '' }
end
start_element(name, attrs = []) click to toggle source
# File lib/fog/aws/parsers/elb/describe_load_balancer_policies.rb, line 23
def start_element(name, attrs = [])
  super
  case name
  when 'PolicyAttributeDescriptions'
    @in_policy_attributes = true
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.