Class: LunchMoney::Objects::Budget

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Object

#serialize

Constructor Details

#initialize(is_income:, exclude_from_budget:, exclude_from_totals:, data:, category_name:, order:, archived:, category_id: nil, category_group_name: nil, group_id: nil, is_group: nil, config: nil, recurring: nil) ⇒ Budget

Returns a new instance of Budget.



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/lunchmoney/objects/budget.rb', line 57

def initialize(is_income:, exclude_from_budget:, exclude_from_totals:, data:, category_name:, order:, archived:,
  category_id: nil, category_group_name: nil, group_id: nil, is_group: nil, config: nil, recurring: nil)
  super()
  @category_id = category_id
  @is_income = is_income
  @exclude_from_budget = exclude_from_budget
  @exclude_from_totals = exclude_from_totals
  @data = data
  @category_name = category_name
  @order = order
  @category_group_name = category_group_name
  @group_id = group_id
  @is_group = is_group
  @config = config
  @archived = archived
  @recurring = recurring
end

Instance Attribute Details

#archivedObject

Returns the value of attribute archived.



29
30
31
# File 'lib/lunchmoney/objects/budget.rb', line 29

def archived
  @archived
end

#category_group_nameObject

Returns the value of attribute category_group_name.



20
21
22
# File 'lib/lunchmoney/objects/budget.rb', line 20

def category_group_name
  @category_group_name
end

#category_idObject

Returns the value of attribute category_id.



23
24
25
# File 'lib/lunchmoney/objects/budget.rb', line 23

def category_id
  @category_id
end

#category_nameObject

Returns the value of attribute category_name.



14
15
16
# File 'lib/lunchmoney/objects/budget.rb', line 14

def category_name
  @category_name
end

#configObject

Returns the value of attribute config.



35
36
37
# File 'lib/lunchmoney/objects/budget.rb', line 35

def config
  @config
end

#dataObject

Returns the value of attribute data.



32
33
34
# File 'lib/lunchmoney/objects/budget.rb', line 32

def data
  @data
end

#exclude_from_budgetObject

Returns the value of attribute exclude_from_budget.



29
30
31
# File 'lib/lunchmoney/objects/budget.rb', line 29

def exclude_from_budget
  @exclude_from_budget
end

#exclude_from_totalsObject

Returns the value of attribute exclude_from_totals.



29
30
31
# File 'lib/lunchmoney/objects/budget.rb', line 29

def exclude_from_totals
  @exclude_from_totals
end

#group_idObject

Returns the value of attribute group_id.



23
24
25
# File 'lib/lunchmoney/objects/budget.rb', line 23

def group_id
  @group_id
end

#is_groupObject

Returns the value of attribute is_group.



26
27
28
# File 'lib/lunchmoney/objects/budget.rb', line 26

def is_group
  @is_group
end

#is_incomeObject

Returns the value of attribute is_income.



29
30
31
# File 'lib/lunchmoney/objects/budget.rb', line 29

def is_income
  @is_income
end

#orderObject

Returns the value of attribute order.



17
18
19
# File 'lib/lunchmoney/objects/budget.rb', line 17

def order
  @order
end

#recurringObject

Returns the value of attribute recurring.



38
39
40
# File 'lib/lunchmoney/objects/budget.rb', line 38

def recurring
  @recurring
end