Sha256: 01e2bb334f755cf7356e647cdeddc1a28f2a556c089ebe2b1afae9557d846121
Contents?: true
Size: 596 Bytes
Versions: 4
Compression:
Stored size: 596 Bytes
Contents
# frozen_string_literal: true require_relative 'account' require_relative 'currency' require_relative 'department' require_relative 'deposit_line_item' module LedgerSync class Deposit < LedgerSync::Resource attribute :memo, type: Type::String attribute :transaction_date, type: Type::Date attribute :exchange_rate, type: Type::Float references_one :account, to: Account references_one :department, to: Department references_one :currency, to: Currency references_many :line_items, to: DepositLineItem def name "Deposit: #{currency}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems