Class: Zaikio::Warehouse::Workstep

Inherits:
Base
  • Object
show all
Defined in:
lib/zaikio/warehouse/workstep.rb

Defined Under Namespace

Classes: InvalidTransition

Instance Method Summary collapse

Methods inherited from Base

disable_http_methods, readonly!, request

Instance Method Details

#complete(params = {}) ⇒ Object



29
30
31
# File 'lib/zaikio/warehouse/workstep.rb', line 29

def complete(params = {})
  transition("complete", params)
end

#prepare(params = {}) ⇒ Object



21
22
23
# File 'lib/zaikio/warehouse/workstep.rb', line 21

def prepare(params = {})
  transition("prepare", params)
end

#start(params = {}) ⇒ Object



25
26
27
# File 'lib/zaikio/warehouse/workstep.rb', line 25

def start(params = {})
  transition("start", params)
end