Class: Wurk::Stats::QueueSummary

Inherits:
Data
  • Object
show all
Defined in:
lib/wurk/stats.rb

Overview

Sidekiq exposes this as a ‘Data` class. Third-party gems destructure on `name`/`size`/`latency`/`paused?`, so the shape can’t change.

Instance Attribute Summary collapse

Instance Attribute Details

#latencyObject (readonly)

Returns the value of attribute latency

Returns:

  • (Object)

    the current value of latency



16
17
18
# File 'lib/wurk/stats.rb', line 16

def latency
  @latency
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



16
17
18
# File 'lib/wurk/stats.rb', line 16

def name
  @name
end

#pausedObject (readonly) Also known as: paused?

Returns the value of attribute paused

Returns:

  • (Object)

    the current value of paused



16
17
18
# File 'lib/wurk/stats.rb', line 16

def paused
  @paused
end

#sizeObject (readonly)

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



16
17
18
# File 'lib/wurk/stats.rb', line 16

def size
  @size
end