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



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

def work
  StoredWorkitem.create({
    :hive => hive,
    :expression_id => expression.id
  })
end