Class: Fog::Rackspace::LoadBalancers::AccessRules
- Inherits:
-
Collection
- Object
- 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.
Instance Method Summary collapse
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 |