Class: LunchMoney::Objects::Tag

Inherits:
TagBase show all
Defined in:
lib/lunchmoney/objects/tag.rb

Overview

Instance Attribute Summary collapse

Attributes inherited from TagBase

#id, #name

Instance Method Summary collapse

Methods inherited from Object

#serialize

Constructor Details

#initialize(id:, name:, archived:, description: nil) ⇒ Tag

Returns a new instance of Tag.



17
18
19
20
21
# File 'lib/lunchmoney/objects/tag.rb', line 17

def initialize(id:, name:, archived:, description: nil)
  super(id:, name:)
  @archived = archived
  @description = description
end

Instance Attribute Details

#archivedObject

Returns the value of attribute archived.



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

def archived
  @archived
end

#descriptionObject

Returns the value of attribute description.



11
12
13
# File 'lib/lunchmoney/objects/tag.rb', line 11

def description
  @description
end