Class: LunchMoney::Objects::ChildCategory
- Defined in:
- lib/lunchmoney/objects/child_category.rb
Overview
A slimmed down version of https://lunchmoney.dev/#categories-object used in the
children
field of some category calls
Direct Known Subclasses
Instance Attribute Summary collapse
-
#archived ⇒ Object
Returns the value of attribute archived.
-
#archived_on ⇒ Object
Returns the value of attribute archived_on.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(id:, name:, archived: nil, archived_on: nil, updated_at: nil, created_at: nil, description: nil) ⇒ ChildCategory
constructor
A new instance of ChildCategory.
Methods inherited from Object
Constructor Details
#initialize(id:, name:, archived: nil, archived_on: nil, updated_at: nil, created_at: nil, description: nil) ⇒ ChildCategory
Returns a new instance of ChildCategory.
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/lunchmoney/objects/child_category.rb', line 32 def initialize(id:, name:, archived: nil, archived_on: nil, updated_at: nil, created_at: nil, description: nil) super() @id = id @name = name @archived = archived @archived_on = archived_on @updated_at = updated_at @created_at = created_at @description = description end |
Instance Attribute Details
#archived ⇒ Object
Returns the value of attribute archived.
19 20 21 |
# File 'lib/lunchmoney/objects/child_category.rb', line 19 def archived @archived end |
#archived_on ⇒ Object
Returns the value of attribute archived_on.
16 17 18 |
# File 'lib/lunchmoney/objects/child_category.rb', line 16 def archived_on @archived_on end |
#created_at ⇒ Object
Returns the value of attribute created_at.
16 17 18 |
# File 'lib/lunchmoney/objects/child_category.rb', line 16 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
16 17 18 |
# File 'lib/lunchmoney/objects/child_category.rb', line 16 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/lunchmoney/objects/child_category.rb', line 10 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/lunchmoney/objects/child_category.rb', line 13 def name @name end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
16 17 18 |
# File 'lib/lunchmoney/objects/child_category.rb', line 16 def updated_at @updated_at end |