Class: LunchMoney::Calls::Users
- Defined in:
- lib/lunchmoney/calls/users.rb
Overview
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from LunchMoney::Calls::Base
Instance Method Details
#me ⇒ LunchMoney::Objects::User, LunchMoney::Errors
11 12 13 14 15 16 17 18 |
# File 'lib/lunchmoney/calls/users.rb', line 11 def me response = get("me") api_errors = errors(response) return api_errors if api_errors.present? LunchMoney::Objects::User.new(**response.body) end |