Class: Suture::Surgeon::Auditor
- Inherits:
-
Object
- Object
- Suture::Surgeon::Auditor
- Includes:
- Adapter::Log
- Defined in:
- lib/suture/surgeon/auditor.rb
Instance Method Summary collapse
-
#initialize ⇒ Auditor
constructor
A new instance of Auditor.
- #operate(plan) ⇒ Object
Methods included from Adapter::Log
#log_debug, #log_error, #log_info, #log_warn, logger, reset!
Constructor Details
Instance Method Details
#operate(plan) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/suture/surgeon/auditor.rb', line 14 def operate(plan) new_result = result_for(plan, :new) old_result = result_for(plan, :old) if !comparable?(plan, old_result, new_result) handle_mismatch(plan, old_result, new_result) else return_result(new_result) end end |