Class: Fog::AWS::ELB::Policies

Inherits:
Collection show all
Defined in:
lib/rackspace-fog/aws/models/elb/policies.rb

Instance Attribute Summary collapse

Attributes inherited from Collection

#connection

Instance Method Summary collapse

Methods inherited from Collection

#clear, #create, #destroy, #initialize, #inspect, #load, model, #model, #new, #reload, #table, #to_json

Methods included from Fog::Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Fog::Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one

Constructor Details

This class inherits a constructor from Fog::Collection

Instance Attribute Details

#dataObject

Returns the value of attribute data.



9
10
11
# File 'lib/rackspace-fog/aws/models/elb/policies.rb', line 9

def data
  @data
end

#load_balancerObject

Returns the value of attribute load_balancer.



9
10
11
# File 'lib/rackspace-fog/aws/models/elb/policies.rb', line 9

def load_balancer
  @load_balancer
end

Instance Method Details

#allObject



11
12
13
# File 'lib/rackspace-fog/aws/models/elb/policies.rb', line 11

def all
  load(munged_data)
end

#get(id) ⇒ Object



15
16
17
# File 'lib/rackspace-fog/aws/models/elb/policies.rb', line 15

def get(id)
  all.detect{|policy| id == policy.id}
end