Class: Myfinance::Resources::Account

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

Overview

A wrapper to Myfinance accounts API

[API] Documentation: https://app.myfinance.com.br/docs/api/multiple_accounts

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

#find_allObject

List all account of the user

[API] Method: GET /accounts

Documentation: https://app.myfinance.com.br/docs/api/multiple_accounts#get_index


18
19
20
21
22
# File 'lib/myfinance/resources/account.rb', line 18

def find_all
  http.get("/accounts", body: {}) do |response|
    respond_with_collection(response)
  end
end