Class: Fog::AWS::ELB::Policies
- Inherits:
-
Collection
- Object
- Collection
- Fog::AWS::ELB::Policies
- Defined in:
- lib/fog/aws/models/elb/policies.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/fog/aws/models/elb/policies.rb', line 12 def all(={}) merge_attributes() requires :load_balancer_id data = service.describe_load_balancer_policies(self.load_balancer_id). body["DescribeLoadBalancerPoliciesResult"]["PolicyDescriptions"] load(munge(data)) end |
#get(id) ⇒ Object
23 24 25 |
# File 'lib/fog/aws/models/elb/policies.rb', line 23 def get(id) all.find { |policy| id == policy.id } end |
#new(attributes = {}) ⇒ Object
27 28 29 |
# File 'lib/fog/aws/models/elb/policies.rb', line 27 def new(attributes={}) super(self.attributes.merge(attributes)) end |