Sha256: ebf18ca0de2174be56e4c67c0530f83c03228292363039ebde52b7d90ee1dd65

Contents?: true

Size: 529 Bytes

Versions: 2

Compression:

Stored size: 529 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module LunchMoney
  # 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
  class TagBase < LunchMoney::DataObject
    sig { returns(Integer) }
    attr_accessor :id

    sig { returns(String) }
    attr_accessor :name

    sig { params(id: Integer, name: String).void }
    def initialize(id:, name:)
      super()
      @id = id
      @name = name
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lunchmoney-1.0.0 lib/lunchmoney/tags/tag/tag_base.rb
lunchmoney-0.10.0 lib/lunchmoney/tags/tag/tag_base.rb