Method: Outcome#initialize
- Defined in:
- lib/outcome.rb
#initialize(success, result, messages = [], errors = [], warnings = []) ⇒ Outcome
Initializes an Outcome instance @param success indicates if process was successful. @param result the return value of the process. Anything you want to return @param[Array<String>, optional] messages messages as Array of strings, optional @param[Array<String>, optional] errors errors as Array of strings, optional @param[Array<String>, optional] warnings warnings as Array of strings, optional
11 12 13 |
# File 'lib/outcome.rb', line 11 def initialize(success, result, = [], errors = [], warnings = []) @success, @result, , @errors, @warnings = success, result, , errors, warnings end |