Class: Swarm::Participant
- Inherits:
-
Object
- Object
- Swarm::Participant
- Defined in:
- lib/swarm/participant.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#hive ⇒ Object
readonly
Returns the value of attribute hive.
Instance Method Summary collapse
- #arguments ⇒ Object
-
#initialize(expression:, hive: Hive.default) ⇒ Participant
constructor
A new instance of Participant.
- #workitem ⇒ Object
Constructor Details
#initialize(expression:, hive: Hive.default) ⇒ Participant
Returns a new instance of Participant.
7 8 9 10 |
# File 'lib/swarm/participant.rb', line 7 def initialize(expression:, hive: Hive.default) @hive = hive @expression = expression end |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
5 6 7 |
# File 'lib/swarm/participant.rb', line 5 def expression @expression end |
#hive ⇒ Object (readonly)
Returns the value of attribute hive.
5 6 7 |
# File 'lib/swarm/participant.rb', line 5 def hive @hive end |
Instance Method Details
#arguments ⇒ Object
16 17 18 |
# File 'lib/swarm/participant.rb', line 16 def arguments expression.arguments end |
#workitem ⇒ Object
12 13 14 |
# File 'lib/swarm/participant.rb', line 12 def workitem expression.workitem end |