Class: Wurk::Queue::Snapshot

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

Overview

One read of #snapshot: size, latency, paused as their methods answer them, and records, the page's JobRecords.

Instance Attribute Summary collapse

Instance Attribute Details

#latency ⇒ Object (readonly)

Returns the value of attribute latency

Returns:

  • (Object) —

    the current value of latency



31
32
33
# File 'lib/wurk/queue.rb', line 31

def latency
  @latency
end

#paused ⇒ Object (readonly) Also known as: paused?

Returns the value of attribute paused

Returns:

  • (Object) —

    the current value of paused



31
32
33
# File 'lib/wurk/queue.rb', line 31

def paused
  @paused
end

#records ⇒ Object (readonly)

Returns the value of attribute records

Returns:

  • (Object) —

    the current value of records



31
32
33
# File 'lib/wurk/queue.rb', line 31

def records
  @records
end

#size ⇒ Object (readonly)

Returns the value of attribute size

Returns:

  • (Object) —

    the current value of size



31
32
33
# File 'lib/wurk/queue.rb', line 31

def size
  @size
end