Class: LunchMoney::Objects::TransactionBase
- Inherits:
-
Object
- Object
- Object
- LunchMoney::Objects::TransactionBase
show all
- Defined in:
- lib/lunchmoney/objects/transaction_base.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Object
#serialize
Constructor Details
#initialize(id:, date:, amount:, currency:, to_base:, payee:, notes: nil, asset_id: nil, plaid_account_id: nil) ⇒ void
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/lunchmoney/objects/transaction_base.rb', line 39
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
|
Instance Attribute Details
#amount ⇒ String
18
19
20
|
# File 'lib/lunchmoney/objects/transaction_base.rb', line 18
def amount
@amount
end
|
#asset_id ⇒ Integer?
15
16
17
|
# File 'lib/lunchmoney/objects/transaction_base.rb', line 15
def asset_id
@asset_id
end
|
#currency ⇒ String
18
19
20
|
# File 'lib/lunchmoney/objects/transaction_base.rb', line 18
def currency
@currency
end
|
#date ⇒ String
18
19
20
|
# File 'lib/lunchmoney/objects/transaction_base.rb', line 18
def date
@date
end
|
#id ⇒ Integer
9
10
11
|
# File 'lib/lunchmoney/objects/transaction_base.rb', line 9
def id
@id
end
|
#notes ⇒ String?
24
25
26
|
# File 'lib/lunchmoney/objects/transaction_base.rb', line 24
def notes
@notes
end
|
#payee ⇒ String
18
19
20
|
# File 'lib/lunchmoney/objects/transaction_base.rb', line 18
def payee
@payee
end
|
#plaid_account_id ⇒ Integer?
15
16
17
|
# File 'lib/lunchmoney/objects/transaction_base.rb', line 15
def plaid_account_id
@plaid_account_id
end
|
12
13
14
|
# File 'lib/lunchmoney/objects/transaction_base.rb', line 12
def to_base
@to_base
end
|