Sha256: 0e39bb15cbc31463ca5be54816497bcf3f915979bade05a0b23a5c723ce1a2e0
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
module DDC module ResponseBuilder def not_found {status: :not_found} end def ok(obj) {status: :ok, object: obj} end def created(obj) {status: :created, object: obj} end def not_valid(obj) {status: :not_valid, errors: obj.errors.to_hash} end def deleted {status: :deleted} end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ddc-0.1.9 | lib/ddc/response_builder.rb |