Sha256: c92b8a9a538fab4766a0d984423d41efc9163506d298ff1c0675b1f1abd8cf5e
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 Bytes
Contents
# typed: strict # frozen_string_literal: true module LunchMoney # Object used to split a transaction when updating https://lunchmoney.dev/#update-transaction class Split < TransactionModificationBase sig { returns(T.any(Number, String)) } attr_accessor :amount sig do params( amount: T.any(Number, String), payee: T.nilable(String), date: T.nilable(String), category_id: T.nilable(Integer), notes: T.nilable(String), ).void end def initialize(amount:, payee: nil, date: nil, category_id: nil, notes: nil) super(payee:, date:, category_id:, notes:) @amount = amount end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lunchmoney-1.0.0 | lib/lunchmoney/transactions/transaction/split.rb |
lunchmoney-0.10.0 | lib/lunchmoney/transactions/transaction/split.rb |