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 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) ⇒ void

Parameters:

  • payee (String, nil) (defaults to: nil)
  • date (String, nil) (defaults to: nil)
  • category_id (Integer, nil) (defaults to: nil)
  • notes (String, nil) (defaults to: nil)


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_idInteger?

Returns:

  • (Integer, nil)


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

def category_id
  @category_id
end

#dateString?

Returns:

  • (String, nil)


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

def date
  @date
end

#notesString?

Returns:

  • (String, nil)


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

def notes
  @notes
end

#payeeString?

Returns:

  • (String, nil)


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

def payee
  @payee
end