class Fog::Network::OpenStack::LbHealthMonitors

Public Class Methods

new(attributes) click to toggle source
Calls superclass method Fog::Collection.new
# File lib/fog/openstack/models/network/lb_health_monitors.rb, line 13
def initialize(attributes)
  self.filters ||= {}
  super
end

Public Instance Methods

all(filters = filters) click to toggle source
# File lib/fog/openstack/models/network/lb_health_monitors.rb, line 18
def all(filters = filters)
  self.filters = filters
  load(service.list_lb_health_monitors(filters).body['health_monitors'])
end
get(health_monitor_id) click to toggle source
# File lib/fog/openstack/models/network/lb_health_monitors.rb, line 23
def get(health_monitor_id)
  if health_monitor = service.get_lb_health_monitor(health_monitor_id).body['health_monitor']
    new(health_monitor)
  end
rescue Fog::Network::OpenStack::NotFound
  nil
end