Sha256: a563afe4321c9ab3ef21bc1d751df029920ceb20e5b497c83331bfa21b48bdf9
Contents?: true
Size: 511 Bytes
Versions: 5
Compression:
Stored size: 511 Bytes
Contents
# typed: strict # frozen_string_literal: true require_relative "../objects/tag" module LunchMoney module Calls # https://lunchmoney.dev/#tags class Tags < LunchMoney::Calls::Base sig { returns(T.any(T::Array[LunchMoney::Objects::Tag], LunchMoney::Errors)) } def tags response = get("tags") api_errors = errors(response) return api_errors if api_errors.present? response.body.map { |tag| LunchMoney::Objects::Tag.new(**tag) } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems