Class: LunchMoney::Objects::Budget
- Defined in:
- lib/lunchmoney/objects/budget.rb
Overview
Instance Attribute Summary collapse
-
#archived ⇒ Object
Returns the value of attribute archived.
-
#category_group_name ⇒ Object
Returns the value of attribute category_group_name.
-
#category_id ⇒ Object
Returns the value of attribute category_id.
-
#category_name ⇒ Object
Returns the value of attribute category_name.
-
#config ⇒ Object
Returns the value of attribute config.
-
#data ⇒ Object
Returns the value of attribute data.
-
#exclude_from_budget ⇒ Object
Returns the value of attribute exclude_from_budget.
-
#exclude_from_totals ⇒ Object
Returns the value of attribute exclude_from_totals.
-
#group_id ⇒ Object
Returns the value of attribute group_id.
-
#is_group ⇒ Object
Returns the value of attribute is_group.
-
#is_income ⇒ Object
Returns the value of attribute is_income.
-
#order ⇒ Object
Returns the value of attribute order.
-
#recurring ⇒ Object
Returns the value of attribute recurring.
Instance Method Summary collapse
-
#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
constructor
A new instance of Budget.
Methods inherited from Object
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
#archived ⇒ Object
Returns the value of attribute archived.
29 30 31 |
# File 'lib/lunchmoney/objects/budget.rb', line 29 def archived @archived end |
#category_group_name ⇒ Object
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_id ⇒ Object
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_name ⇒ Object
Returns the value of attribute category_name.
14 15 16 |
# File 'lib/lunchmoney/objects/budget.rb', line 14 def category_name @category_name end |
#config ⇒ Object
Returns the value of attribute config.
35 36 37 |
# File 'lib/lunchmoney/objects/budget.rb', line 35 def config @config end |
#data ⇒ Object
Returns the value of attribute data.
32 33 34 |
# File 'lib/lunchmoney/objects/budget.rb', line 32 def data @data end |
#exclude_from_budget ⇒ Object
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_totals ⇒ Object
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_id ⇒ Object
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_group ⇒ Object
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_income ⇒ Object
Returns the value of attribute is_income.
29 30 31 |
# File 'lib/lunchmoney/objects/budget.rb', line 29 def is_income @is_income end |
#order ⇒ Object
Returns the value of attribute order.
17 18 19 |
# File 'lib/lunchmoney/objects/budget.rb', line 17 def order @order end |
#recurring ⇒ Object
Returns the value of attribute recurring.
38 39 40 |
# File 'lib/lunchmoney/objects/budget.rb', line 38 def recurring @recurring end |