class HecksApp::ApplicationPort::CommandRunner::Event
Attributes
domain_event[R]
errors[R]
Public Class Methods
new(errors: [], domain_event: nil)
click to toggle source
# File lib/application_port/command_runner/event.rb, line 6 def initialize(errors: [], domain_event: nil) @errors = errors @domain_event = domain_event end
Public Instance Methods
on_fail() { |self| ... }
click to toggle source
# File lib/application_port/command_runner/event.rb, line 17 def on_fail return if @errors.empty? yield self end
on_success() { |self| ... }
click to toggle source
# File lib/application_port/command_runner/event.rb, line 11 def on_success return unless @errors.empty? yield self end