Sha256: 25d9464e37719ef85b57a107cb3b102050ec5d38c1eea64ea8a73b12f4854391

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

Stored size: 585 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module LunchMoney
  module Objects
    # 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::Objects::Object
      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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lunchmoney-1.4.0 lib/lunchmoney/objects/tag_base.rb
lunchmoney-1.2.0 lib/lunchmoney/objects/tag_base.rb
lunchmoney-1.1.2 lib/lunchmoney/objects/tag_base.rb
lunchmoney-1.1.1 lib/lunchmoney/objects/tag_base.rb
lunchmoney-1.1.0 lib/lunchmoney/objects/tag_base.rb