class Qless::ClientWorkers

A class for interacting with workers. Not meant to be instantiated directly, it's accessed through Client#workers

Public Class Methods

new(client) click to toggle source
# File lib/qless.rb, line 109
def initialize(client)
  @client = client
end

Public Instance Methods

[](name) click to toggle source
# File lib/qless.rb, line 117
def [](name)
  JSON.parse(@client.call('workers', name))
end
counts() click to toggle source
# File lib/qless.rb, line 113
def counts
  JSON.parse(@client.call('workers'))
end