# File lib/fog/aws/models/elb/listener.rb, line 14 def initialize(attributes={}) # set defaults, which may be overridden in super merge_attributes(:policy_names => [], :instance_port => 80, :instance_protocol => 'HTTP', :lb_port => 80, :protocol => 'HTTP') super end
# File lib/fog/aws/models/elb/listener.rb, line 26 def destroy requires :load_balancer, :lb_port service.delete_load_balancer_listeners(load_balancer.id, [lb_port]) reload end
# File lib/fog/aws/models/elb/listener.rb, line 41 def load_balancer collection.load_balancer end
Return the policy associated with this load balancer
# File lib/fog/aws/models/elb/listener.rb, line 33 def policy load_balancer.policies.get(policy_names.first) end
# File lib/fog/aws/models/elb/listener.rb, line 37 def reload load_balancer.reload end
Generated with the Darkfish Rdoc Generator 2.