Class: LunchMoney::Calls::Users

Inherits:
Base
  • Object
show all
Defined in:
lib/lunchmoney/calls/users.rb

Overview

https://lunchmoney.dev/#user

Constant Summary

Constants inherited from Base

Base::BASE_URL

Instance Attribute Summary

Attributes inherited from Base

#api_key

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from LunchMoney::Calls::Base

Instance Method Details

#meLunchMoney::Objects::User, LunchMoney::Errors



11
12
13
14
15
16
17
# File 'lib/lunchmoney/calls/users.rb', line 11

def me
  response = get("me")

  handle_api_response(response) do |body|
    LunchMoney::Objects::User.new(**body)
  end
end