2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-01-03 12:03:01 -05: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
|