Parent

Methods

Class/Module Index [+]

Quicksearch

Fog::Network::OpenStack::LbPools

Public Class Methods

new(attributes) click to toggle source
# File lib/fog/openstack/models/network/lb_pools.rb, line 12
def initialize(attributes)
  self.filters ||= {}
  super
end

Public Instance Methods

all(filters = filters) click to toggle source
# File lib/fog/openstack/models/network/lb_pools.rb, line 17
def all(filters = filters)
  self.filters = filters
  load(service.list_lb_pools(filters).body['pools'])
end
get(pool_id) click to toggle source
# File lib/fog/openstack/models/network/lb_pools.rb, line 22
def get(pool_id)
  if pool = service.get_lb_pool(pool_id).body['pool']
    new(pool)
  end
rescue Fog::Network::OpenStack::NotFound
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.