Class: Belvo::RecurringExpenses
- Defined in:
- lib/belvo/resources.rb
Overview
Recurring Expenses contain a resume of one year of Transactions inside an Account.
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(session) ⇒ RecurringExpenses
constructor
A new instance of RecurringExpenses.
-
#retrieve(link:, options: nil) ⇒ Hash
Retrieve recurring expenses information from a specific banking link.
Methods inherited from Resource
#clean, #delete, #detail, #list, #resume
Constructor Details
#initialize(session) ⇒ RecurringExpenses
Returns a new instance of RecurringExpenses.
366 367 368 369 |
# File 'lib/belvo/resources.rb', line 366 def initialize(session) super(session) @endpoint = 'api/recurring-expenses/' end |
Instance Method Details
#retrieve(link:, options: nil) ⇒ Hash
Retrieve recurring expenses information from a specific banking link
376 377 378 379 380 381 382 383 384 |
# File 'lib/belvo/resources.rb', line 376 def retrieve(link:, options: nil) = RecurringExpensesOptions.from() body = { link: link, save_data: .save_data || true }.merge() body = clean body: body @session.post(@endpoint, body) end |