Class: Fog::Rackspace::LoadBalancers::AccessRules
- Inherits:
-
Collection
- Object
- Array
- Collection
- Fog::Rackspace::LoadBalancers::AccessRules
- Defined in:
- lib/fog/rackspace/models/load_balancers/access_rules.rb
Instance Attribute Summary collapse
-
#load_balancer ⇒ Object
Returns the value of attribute load_balancer.
Attributes inherited from Collection
Instance Method Summary collapse
Methods inherited from Collection
#clear, #create, #initialize, #inspect, #load, model, #model, #new, #reload, #table, #to_json
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from 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
#load_balancer ⇒ Object
Returns the value of attribute load_balancer.
10 11 12 |
# File 'lib/fog/rackspace/models/load_balancers/access_rules.rb', line 10 def load_balancer @load_balancer end |
Instance Method Details
#all ⇒ Object
12 13 14 |
# File 'lib/fog/rackspace/models/load_balancers/access_rules.rb', line 12 def all load(all_raw) end |
#get(access_rule_id) ⇒ Object
16 17 18 19 |
# File 'lib/fog/rackspace/models/load_balancers/access_rules.rb', line 16 def get(access_rule_id) data = all_raw.select { |access_rule| access_rule['id'] == access_rule_id }.first data && new(data) end |