Class: LunchMoney::Objects::TransactionModificationBase

Inherits:
Object
  • Object
show all
Defined in:
lib/lunchmoney/objects/transaction_modification_base.rb

Overview

Base object used for transaction objects that are used to update transactions https://lunchmoney.dev/#update-transaction

Direct Known Subclasses

Split, UpdateTransaction

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Object

#serialize

Constructor Details

#initialize(payee: nil, date: nil, category_id: nil, notes: nil) ⇒ TransactionModificationBase

Returns a new instance of TransactionModificationBase.



23
24
25
26
27
28
29
# File 'lib/lunchmoney/objects/transaction_modification_base.rb', line 23

def initialize(payee: nil, date: nil, category_id: nil, notes: nil)
  super()
  @payee = payee
  @date = date
  @category_id = category_id
  @notes = notes
end

Instance Attribute Details

#category_idObject

Returns the value of attribute category_id.



13
14
15
# File 'lib/lunchmoney/objects/transaction_modification_base.rb', line 13

def category_id
  @category_id
end

#dateObject

Returns the value of attribute date.



10
11
12
# File 'lib/lunchmoney/objects/transaction_modification_base.rb', line 10

def date
  @date
end

#notesObject

Returns the value of attribute notes.



10
11
12
# File 'lib/lunchmoney/objects/transaction_modification_base.rb', line 10

def notes
  @notes
end

#payeeObject

Returns the value of attribute payee.



10
11
12
# File 'lib/lunchmoney/objects/transaction_modification_base.rb', line 10

def payee
  @payee
end