Sha256: e7e2eedee4bcfaa691b6600898667db82a122c02ced96d657474eeb74a3af158

Contents?: true

Size: 604 Bytes

Versions: 5

Compression:

Stored size: 604 Bytes

Contents

# typed: strict
# frozen_string_literal: true

require_relative "tag_base"

module LunchMoney
  module Objects
    # https://lunchmoney.dev/#tags-object
    class Tag < TagBase
      sig { returns(T.nilable(String)) }
      attr_accessor :description

      sig { returns(T::Boolean) }
      attr_accessor :archived

      sig { params(id: Integer, name: String, archived: T::Boolean, description: T.nilable(String)).void }
      def initialize(id:, name:, archived:, description: nil)
        super(id:, name:)
        @archived = archived
        @description = description
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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