Sha256: 3d1a03606701f4ef88be9ca744732b4bbe2f30dd64b57ea551bb527f3a5d175e
Contents?: true
Size: 401 Bytes
Versions: 2
Compression:
Stored size: 401 Bytes
Contents
# typed: strict # frozen_string_literal: true require_relative "user" module LunchMoney # https://lunchmoney.dev/#user class UserCalls < ApiCall sig { returns(T.any(LunchMoney::User, LunchMoney::Errors)) } def me response = get("me") api_errors = errors(response) return api_errors if api_errors.present? LunchMoney::User.new(**response.body) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lunchmoney-1.0.0 | lib/lunchmoney/user/user_calls.rb |
lunchmoney-0.10.0 | lib/lunchmoney/user/user_calls.rb |