Sha256: 01ae77810e250975cc53a57b6b3d19ccaf109ea1332f00b2925fa3bbd40f10df

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 Bytes

Contents

module LedgerSync
  class Deposit < LedgerSync::Resource
    attribute :currency, type: Type::String
    attribute :memo, type: Type::String
    attribute :transaction_date, type: Type::Date
    attribute :exchange_rate, type: Type::Float

    references_one :account, to: Account

    references_many :line_items, to: DepositLineItem

    def name
      "Deposit: #{currency}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ledger_sync-1.1.3 lib/ledger_sync/resources/deposit.rb
ledger_sync-1.1.2 lib/ledger_sync/resources/deposit.rb
ledger_sync-1.1.1 lib/ledger_sync/resources/deposit.rb