Class: LunchMoney::Objects::Category
- Inherits:
-
ChildCategory
- Object
- Object
- ChildCategory
- LunchMoney::Objects::Category
- Defined in:
- lib/lunchmoney/objects/category.rb
Overview
Instance Attribute Summary collapse
- #children ⇒ Array<LunchMoney::Objects::Category, LunchMoney::Objects::ChildCategory>?
- #exclude_from_budget ⇒ Boolean
- #exclude_from_totals ⇒ Boolean
- #group_category_name ⇒ String?
- #group_id ⇒ Integer?
- #is_group ⇒ Boolean
- #is_income ⇒ Boolean
- #order ⇒ Integer?
Attributes inherited from ChildCategory
#archived, #archived_on, #created_at, #description, #id, #name, #updated_at
Instance Method Summary collapse
Methods inherited from Object
Constructor Details
#initialize(id:, name:, is_income:, exclude_from_budget:, exclude_from_totals:, is_group:, archived: nil, archived_on: nil, updated_at: nil, created_at: nil, group_id: nil, order: nil, description: nil, children: nil, group_category_name: nil) ⇒ void
40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/lunchmoney/objects/category.rb', line 40 def initialize(id:, name:, is_income:, exclude_from_budget:, exclude_from_totals:, is_group:, archived: nil, archived_on: nil, updated_at: nil, created_at: nil, group_id: nil, order: nil, description: nil, children: nil, group_category_name: nil) super(id:, name:, archived:, archived_on:, updated_at:, created_at:, description:) @is_income = is_income @exclude_from_budget = exclude_from_budget @exclude_from_totals = exclude_from_totals @is_group = is_group @group_id = group_id @order = order @children = children @group_category_name = group_category_name end |
Instance Attribute Details
#children ⇒ Array<LunchMoney::Objects::Category, LunchMoney::Objects::ChildCategory>?
19 20 21 |
# File 'lib/lunchmoney/objects/category.rb', line 19 def children @children end |
#exclude_from_budget ⇒ Boolean
13 14 15 |
# File 'lib/lunchmoney/objects/category.rb', line 13 def exclude_from_budget @exclude_from_budget end |
#exclude_from_totals ⇒ Boolean
13 14 15 |
# File 'lib/lunchmoney/objects/category.rb', line 13 def exclude_from_totals @exclude_from_totals end |
#group_category_name ⇒ String?
10 11 12 |
# File 'lib/lunchmoney/objects/category.rb', line 10 def group_category_name @group_category_name end |
#group_id ⇒ Integer?
16 17 18 |
# File 'lib/lunchmoney/objects/category.rb', line 16 def group_id @group_id end |
#is_group ⇒ Boolean
13 14 15 |
# File 'lib/lunchmoney/objects/category.rb', line 13 def is_group @is_group end |
#is_income ⇒ Boolean
13 14 15 |
# File 'lib/lunchmoney/objects/category.rb', line 13 def is_income @is_income end |
#order ⇒ Integer?
16 17 18 |
# File 'lib/lunchmoney/objects/category.rb', line 16 def order @order end |