lib/frontkick/result.rb in frontkick-0.4.9 vs lib/frontkick/result.rb in frontkick-0.5.0
- old
+ new
@@ -4,10 +4,10 @@
alias :status :exit_code
alias :status= :exit_code=
alias :exitstatus :exit_code # for compatibility with Open3 Process::Status
alias :exitstatus= :exit_code= # for compatibility with Open3 Process::Status
- def initialize(params)
+ def initialize(params = {})
@stdout = params[:stdout] || ""
@stderr = params[:stderr] || ""
@exit_code = params[:exit_code] || 0
@duration = params[:duration] || 0
end