Class: Swarm::StorageParticipant

Inherits:
Participant show all
Defined in:
lib/swarm/participants/storage_participant.rb

Instance Attribute Summary

Attributes inherited from Participant

#expression, #hive

Instance Method Summary collapse

Methods inherited from Participant

#arguments, #initialize, #workitem

Constructor Details

This class inherits a constructor from Swarm::Participant

Instance Method Details

#workObject



7
8
9
10
11
12
# File 'lib/swarm/participants/storage_participant.rb', line 7

def work
  StoredWorkitem.create(
    hive: hive,
    expression_id: expression.id
  )
end