Sha256: f0520879bb8109773e0431fc0c7a778069ac1cba34589f3eba5707b7cefd002c

Contents?: true

Size: 235 Bytes

Versions: 6

Compression:

Stored size: 235 Bytes

Contents

module Payoneer
  class Response
    OK_STATUS_CODE = '000'.freeze

    attr_reader :code, :body

    def initialize(code, body)
      @code = code
      @body = body
    end

    def ok?
      code == OK_STATUS_CODE
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
payoneer-client-0.8.0 lib/payoneer/response.rb
payoneer-client-0.7.0 lib/payoneer/response.rb
payoneer-client-0.5.0 lib/payoneer/response.rb
payoneer-client-0.6.0 lib/payoneer/response.rb
payoneer-client-0.4.1 lib/payoneer/response.rb
payoneer-client-0.4 lib/payoneer/response.rb