Sha256: fde91997d5949ca1bf82f38689861fac0115277d9a138c4e18df7732d719f47e
Contents?: true
Size: 277 Bytes
Versions: 25
Compression:
Stored size: 277 Bytes
Contents
module JSONAPI class OperationResult attr_accessor :code, :errors, :resource def initialize(code, resource = nil, errors = []) @code = code @resource = resource @errors = errors end def has_errors? errors.count > 0 end end end
Version data entries
25 entries across 25 versions & 1 rubygems