Sha256: 14946fb0c294ffb2063d5fbd89c1fc6cee46074757702a3633a9114a3c9d1a15
Contents?: true
Size: 1.35 KB
Versions: 5
Compression:
Stored size: 1.35 KB
Contents
# typed: strict # frozen_string_literal: true module LunchMoney module Objects # Slimmed down version of https://lunchmoney.dev/#transaction-object used as a base for other transaction objects class TransactionBase < LunchMoney::Objects::Object sig { returns(Integer) } attr_accessor :id sig { returns(Number) } attr_accessor :to_base sig { returns(T.nilable(Integer)) } attr_accessor :asset_id, :plaid_account_id sig { returns(String) } attr_accessor :date, :amount, :currency, :payee sig { returns(T.nilable(String)) } attr_accessor :notes sig do params( id: Integer, date: String, amount: String, currency: String, to_base: Number, payee: String, notes: T.nilable(String), asset_id: T.nilable(Integer), plaid_account_id: T.nilable(Integer), ).void end def initialize(id:, date:, amount:, currency:, to_base:, payee:, notes: nil, asset_id: nil, plaid_account_id: nil) super() @id = id @date = date @amount = amount @currency = currency @to_base = to_base @payee = payee @notes = notes @asset_id = asset_id @plaid_account_id = plaid_account_id end end end end
Version data entries
5 entries across 5 versions & 1 rubygems