Sha256: 4cb9ae8c08c7186960c11eb8b342376632029c3cd62aca6fbf900477f6fe611d

Contents?: true

Size: 271 Bytes

Versions: 8

Compression:

Stored size: 271 Bytes

Contents

module Moneytree
  class TransactionResponse
    attr_reader :message, :status, :body

    def initialize(status, message, body = {})
      @status = status
      @message = message
      @body = body
    end

    def success?
      @status == :success
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
moneytree-rails-0.1.11 lib/moneytree/transaction_response.rb
moneytree-rails-0.1.10 lib/moneytree/transaction_response.rb
moneytree-rails-0.1.9 lib/moneytree/transaction_response.rb
moneytree-rails-0.1.8 lib/moneytree/transaction_response.rb
moneytree-rails-0.1.7 lib/moneytree/transaction_response.rb
moneytree-rails-0.1.6 lib/moneytree/transaction_response.rb
moneytree-rails-0.1.5 lib/moneytree/transaction_response.rb
moneytree-rails-0.1.4 lib/moneytree/transaction_response.rb