Method: MotherBrain::Job#initialize
- Defined in:
- lib/mb/job.rb
#initialize(type) ⇒ Job
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Job.
62 63 64 65 66 67 68 |
# File 'lib/mb/job.rb', line 62 def initialize(type) @machine = StateMachine.new @type = type.to_s @id = job_manager.uuid @result = nil job_manager.add(Actor.current) end |