class Myfinance::Resources::Entity
A wrapper to Myfinance
entities API
- API
-
Documentation: app.myfinance.com.br/docs/api/entities
Public Instance Methods
find(entity_id)
click to toggle source
Find a specific entity
- API
-
Method:
GET /entities/:id
Documentation: app.myfinance.com.br/docs/api/entities#get_show
# File lib/myfinance/resources/entity.rb, line 34 def find(entity_id) http.get("/entities/#{entity_id}", body: {}) do |response| respond_with_object(response, 'entity') end end
find_all(params = {})
click to toggle source
List all entities of the user
- API
-
Method:
GET /entities
Documentation: app.myfinance.com.br/docs/api/entities#get_index
# File lib/myfinance/resources/entity.rb, line 18 def find_all(params = {}) search_endpoint = build_search_endpoint(params) http.get(search_endpoint) do |response| respond_with_collection(response) end end
Private Instance Methods
endpoint()
click to toggle source
# File lib/myfinance/resources/entity.rb, line 42 def endpoint "/entities" end