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) ⇒ void

Parameters:

  • id (Integer)
  • name (String)
  • archived (Boolean)
  • description (String, nil) (defaults to: nil)


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

#archivedBoolean

Returns:

  • (Boolean)


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

def archived
  @archived
end

#descriptionString?

Returns:

  • (String, nil)


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

def description
  @description
end