Sha256: 7e0c1064e89f49865433f3e0135e7b7b910434240ff6c4f69667cd8bfe3d2a7f
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true module Payture::Cheques module Responses class Base attr_reader :body def initialize(body) @body = body end def success? body['Success'] == 'True' end def error? !success? end def error_code body['ErrCode'] end def error_messages body['ErrMessages'] end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
payture-cheques-0.1.5 | lib/payture/cheques/responses/base.rb |
payture-cheques-0.1.4 | lib/payture/cheques/responses/base.rb |