Class: Fog::Rackspace::LoadBalancers::AccessRules

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/rackspace/models/load_balancers/access_rules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#load_balancerObject

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

#allObject



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