class Regiment::Order
Public Class Methods
new(options={})
click to toggle source
# File lib/regiment/order.rb, line 9 def initialize(options={}) end
Public Instance Methods
do_execute(options={})
click to toggle source
do_thing methods wrap methods to be overriden in order imlpementation
# File lib/regiment/order.rb, line 13 def do_execute(options={}) @state = :executing results = execute return do_report(results) end
do_report(result, options={})
click to toggle source
# File lib/regiment/order.rb, line 22 def do_report(result, options={}) @state = :reporting @report = result return report(result) end
execute(options={})
click to toggle source
# File lib/regiment/order.rb, line 19 def execute(options={}) end
report(result ,options={})
click to toggle source
# File lib/regiment/order.rb, line 28 def report(result ,options={}) return result end