class SeaFood::Service::ServiceResult
def initialize(success: true, data: nil, errors: nil)
-
data
(Any
) -- The data returned by the service. -
success
(Boolean
) -- Indicates if the service call was successful.
def initialize(success: true, data: nil, errors: nil) @success = success @data = (data || {}).with_indifferent_access @errors = (errors.to_h || {}).with_indifferent_access end