Sha256: c03b65842c3c4270d2f2c33bb41d32994edeeee2fe34f0ee243698fb8e1cdcb9

Contents?: true

Size: 414 Bytes

Versions: 15

Compression:

Stored size: 414 Bytes

Contents

module Balanced
  # Any transfer, or potential transfer of, funds from or to, your
  # Marketplace. E.g. a Credit, Debit, Refund, or Hold.
  #
  class Transaction
    include Balanced::Resource

    def initialize attributes = {}
      Balanced::Utils.stringify_keys! attributes
      unless attributes.has_key? 'uri'
        attributes['uri'] = self.class.uri
      end
      super attributes
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
balanced-0.7.1 lib/balanced/resources/transaction.rb
balanced-0.7.0 lib/balanced/resources/transaction.rb
balanced-0.6.0 lib/balanced/resources/transaction.rb
balanced-0.5.6 lib/balanced/resources/transaction.rb
balanced-0.5.5 lib/balanced/resources/transaction.rb
balanced-0.5.4 lib/balanced/resources/transaction.rb
balanced-0.5.3 lib/balanced/resources/transaction.rb
balanced-0.5.2 lib/balanced/resources/transaction.rb
balanced-0.5.1 lib/balanced/resources/transaction.rb
balanced-0.3.11 lib/balanced/resources/transaction.rb
balanced-0.3.10 lib/balanced/resources/transaction.rb
balanced-0.3.8 lib/balanced/resources/transaction.rb
balanced-0.3.7 lib/balanced/resources/transaction.rb
balanced-0.3.6 lib/balanced/resources/transaction.rb
balanced-0.3.5 lib/balanced/resources/transaction.rb