Method: Burst::Job#assign_default_values
- Defined in:
- lib/burst/job.rb
#assign_default_values(hash_store) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/burst/job.rb', line 17 def assign_default_values(hash_store) set_model(hash_store.deep_dup) self.id ||= SecureRandom.uuid self.workflow_id ||= @workflow.id self.klass ||= self.class.to_s self.incoming ||= [] self.outgoing ||= [] end |