Class: LunchMoney::Objects::RecurringExpense

Inherits:
RecurringExpenseBase show all
Defined in:
lib/lunchmoney/objects/recurring_expense.rb

Overview

Instance Attribute Summary collapse

Attributes inherited from RecurringExpenseBase

#amount, #currency, #payee, #to_base

Instance Method Summary collapse

Methods inherited from Object

#serialize

Constructor Details

#initialize(cadence:, payee:, amount:, currency:, billing_date:, type:, source:, id:, created_at:, category_id: nil, start_date: nil, end_date: nil, description: nil, original_name: nil, plaid_account_id: nil, asset_id: nil, transaction_id: nil, to_base: nil) ⇒ RecurringExpense

Returns a new instance of RecurringExpense.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/lunchmoney/objects/recurring_expense.rb', line 43

def initialize(cadence:, payee:, amount:, currency:, billing_date:, type:, source:, id:, created_at:,
  category_id: nil, start_date: nil, end_date: nil, description: nil, original_name: nil, plaid_account_id: nil,
  asset_id: nil, transaction_id: nil, to_base: nil)
  super(payee:, amount:, currency:, to_base:)
  @cadence = cadence
  @payee = payee
  @amount = amount
  @currency = currency
  @billing_date = billing_date
  @type = type
  @source = source
  @id = id
  @category_id = category_id
  @created_at = created_at
  @start_date = start_date
  @end_date = end_date
  @description = description
  @original_name = original_name
  @plaid_account_id = 
  @asset_id = asset_id
  @transaction_id = transaction_id
  @to_base = to_base
end

Instance Attribute Details

#asset_idObject

Returns the value of attribute asset_id.



19
20
21
# File 'lib/lunchmoney/objects/recurring_expense.rb', line 19

def asset_id
  @asset_id
end

#billing_dateObject

Returns the value of attribute billing_date.



16
17
18
# File 'lib/lunchmoney/objects/recurring_expense.rb', line 16

def billing_date
  @billing_date
end

#cadenceObject

Returns the value of attribute cadence.



16
17
18
# File 'lib/lunchmoney/objects/recurring_expense.rb', line 16

def cadence
  @cadence
end

#category_idObject

Returns the value of attribute category_id.



19
20
21
# File 'lib/lunchmoney/objects/recurring_expense.rb', line 19

def category_id
  @category_id
end

#created_atObject

Returns the value of attribute created_at.



16
17
18
# File 'lib/lunchmoney/objects/recurring_expense.rb', line 16

def created_at
  @created_at
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#end_dateObject

Returns the value of attribute end_date.



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

def end_date
  @end_date
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#original_nameObject

Returns the value of attribute original_name.



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

def original_name
  @original_name
end

#plaid_account_idObject

Returns the value of attribute plaid_account_id.



19
20
21
# File 'lib/lunchmoney/objects/recurring_expense.rb', line 19

def 
  @plaid_account_id
end

#sourceObject

Returns the value of attribute source.



16
17
18
# File 'lib/lunchmoney/objects/recurring_expense.rb', line 16

def source
  @source
end

#start_dateObject

Returns the value of attribute start_date.



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

def start_date
  @start_date
end

#transaction_idObject

Returns the value of attribute transaction_id.



19
20
21
# File 'lib/lunchmoney/objects/recurring_expense.rb', line 19

def transaction_id
  @transaction_id
end

#typeObject

Returns the value of attribute type.



16
17
18
# File 'lib/lunchmoney/objects/recurring_expense.rb', line 16

def type
  @type
end