Sha256: 786bafddc91efb0ff18c244d1069476e08b84abb2206dd8ffa71046b6cee929f
Contents?: true
Size: 434 Bytes
Versions: 1
Compression:
Stored size: 434 Bytes
Contents
# frozen_string_literal: true module Kentaa module Api module Responses module Status attr_accessor :response def success? (response.code == 200 || response.code == 201) && !message end def error? !success? end def body response.body end def message body[:message] if body end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kentaa-api-0.1.1 | lib/kentaa/api/responses/status.rb |