2021-03-11 07:30:15 +01:00
|
|
|
# frozen_string_literal: true
|
2020-05-04 11:02:49 +02:00
|
|
|
class CustomWizard::ActionResult
|
2021-06-23 08:13:58 +02:00
|
|
|
attr_accessor :success, :handler, :output, :submission
|
2020-05-04 11:02:49 +02:00
|
|
|
|
|
|
|
def initialize
|
|
|
|
@success = false
|
|
|
|
end
|
|
|
|
|
|
|
|
def success?
|
|
|
|
@success
|
|
|
|
end
|
|
|
|
|
|
|
|
def failed?
|
|
|
|
!success
|
|
|
|
end
|
|
|
|
end
|