Class: FinApps::REST::ConsumersPortfolios

Inherits:
FinAppsCore::REST::Resources
  • Object
show all
Includes:
Utils::QueryBuilder
Defined in:
lib/finapps/rest/consumers_portfolios.rb

Instance Method Summary collapse

Methods included from Utils::QueryBuilder

#build_query_path

Instance Method Details

#list(id, params = nil) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/finapps/rest/consumers_portfolios.rb', line 8

def list(id, params = nil)
  not_blank(id)

  path = "consumers/#{ERB::Util.url_encode(id)}/portfolios"
  return super path if params.nil?

  fail FinAppsCore::InvalidArgumentsError, 'Invalid argument: params' unless params.is_a? Hash

  super build_query_path(path, params)
end