Class: Fog::Compute::Brightbox::LoadBalancers

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/brightbox/models/compute/load_balancers.rb

Instance Method Summary collapse

Instance Method Details

#allObject



12
13
14
15
# File 'lib/fog/brightbox/models/compute/load_balancers.rb', line 12

def all
  data = service.list_load_balancers
  load(data)
end

#get(identifier) ⇒ Object



17
18
19
20
21
22
# File 'lib/fog/brightbox/models/compute/load_balancers.rb', line 17

def get(identifier)
  data = service.get_load_balancer(identifier)
  new(data)
rescue Excon::Errors::NotFound
  nil
end