Class: Myfinance::Resources::Reconcile

Inherits:
Base
  • Object
show all
Defined in:
lib/myfinance/resources/reconcile.rb

Instance Attribute Summary

Attributes inherited from Base

#http

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Myfinance::Resources::Base

Instance Method Details

#reconcile(entity_id, financial_accounts_ids = [], financial_transactions_ids = []) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/myfinance/resources/reconcile.rb', line 4

def reconcile(entity_id, financial_accounts_ids = [], financial_transactions_ids = [])
  body = { selected_financial_account_ids: financial_accounts_ids,
           selected_financial_transaction_ids: financial_transactions_ids }

  http.post(path(entity_id), body: body) do |response|
    respond_with_collection(response)
  end
end