class Servi::Result
Attributes
errors[R]
output[R]
params[R]
Public Class Methods
new(status, params, output, errors = Hash.new { |hash, key| hash[key] = [] })
click to toggle source
# File lib/servi.rb, line 48 def initialize(status, params, output, errors = Hash.new { |hash, key| hash[key] = [] }) @status = status @params = params @output = output @errors = errors end
Public Instance Methods
[](key)
click to toggle source
# File lib/servi.rb, line 59 def [](key) @output.fetch(key) end
ok?()
click to toggle source
# File lib/servi.rb, line 55 def ok? @status == :success end