Class: LunchMoney::Calls::Tags
- Defined in:
- lib/lunchmoney/calls/tags.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
#tags ⇒ Array<LunchMoney::Objects::Tag>, LunchMoney::Errors
11 12 13 14 15 16 17 18 |
# File 'lib/lunchmoney/calls/tags.rb', line 11 def response = get("tags") api_errors = errors(response) return api_errors if api_errors.present? response.body.map { |tag| LunchMoney::Objects::Tag.new(**tag) } end |