Class: Wurk::Topology::Slot
- Inherits:
-
Struct
- Object
- Struct
- Wurk::Topology::Slot
- Defined in:
- lib/wurk/topology.rb
Overview
‘:count` shadows Struct#count by design — Slot is a kw-init data carrier and the slot’s child-count is the field users read.
Instance Attribute Summary collapse
-
#concurrency ⇒ Object
Returns the value of attribute concurrency.
-
#count ⇒ Object
Returns the value of attribute count.
-
#queues ⇒ Object
Returns the value of attribute queues.
Instance Method Summary collapse
Instance Attribute Details
#concurrency ⇒ Object
Returns the value of attribute concurrency
18 19 20 |
# File 'lib/wurk/topology.rb', line 18 def concurrency @concurrency end |
#count ⇒ Object
Returns the value of attribute count
18 19 20 |
# File 'lib/wurk/topology.rb', line 18 def count @count end |
#queues ⇒ Object
Returns the value of attribute queues
18 19 20 |
# File 'lib/wurk/topology.rb', line 18 def queues @queues end |
Instance Method Details
#to_h ⇒ Object
19 20 21 |
# File 'lib/wurk/topology.rb', line 19 def to_h { count: count, queues: queues, concurrency: concurrency } end |