Class: LunchMoney::Objects::TagBase

Inherits:
Object
  • Object
show all
Defined in:
lib/lunchmoney/objects/tag_base.rb

Overview

lunchmoney.dev/#tags-object without some fields. This is used within field returns of other objects like field returns of other objects like transactions

Direct Known Subclasses

Tag

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Object

#serialize

Constructor Details

#initialize(id:, name:) ⇒ void

Parameters:

  • id (Integer)
  • name (String)


16
17
18
19
20
# File 'lib/lunchmoney/objects/tag_base.rb', line 16

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

Instance Attribute Details

#idInteger

Returns:

  • (Integer)


10
11
12
# File 'lib/lunchmoney/objects/tag_base.rb', line 10

def id
  @id
end

#nameString

Returns:

  • (String)


13
14
15
# File 'lib/lunchmoney/objects/tag_base.rb', line 13

def name
  @name
end