Sha256: 084facd901cb21764e916db4c261176b991ab887db3d3ea6f98a5300a869e2b1
Contents?: true
Size: 622 Bytes
Versions: 2
Compression:
Stored size: 622 Bytes
Contents
module Xolphin module Api module Responses class Base def initialize(data) @data = data end def error? errors || message end def errors @data["errors"] end def message @data["message"] end def page @data["page"] end def pages @data["pages"] end def limit @data["limit"] end def total @data["total"] end def _embedded @data["_embedded"] end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xolphin-api-1.9.0 | lib/xolphin/api/responses/base.rb |
xolphin-api-1.8.0 | lib/xolphin/api/responses/base.rb |