2019-05-02 17:17:27 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-03 11:03:01 -06:00
|
|
|
require_dependency 'has_errors'
|
|
|
|
|
|
|
|
class PostActionResult
|
|
|
|
include HasErrors
|
|
|
|
|
|
|
|
attr_accessor :success
|
|
|
|
|
|
|
|
def initialize
|
|
|
|
@success = false
|
|
|
|
end
|
|
|
|
|
|
|
|
def success?
|
|
|
|
@success
|
|
|
|
end
|
|
|
|
|
|
|
|
def failed?
|
|
|
|
!success
|
|
|
|
end
|
|
|
|
end
|