Class: LunchMoney::Objects::TagBase

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

Overview

https://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:) ⇒ TagBase

Returns a new instance of TagBase.



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

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end