Sha256: 12c572fe039b5ac511dec1d2a5c7a41e47be97b40ece9a3901b214961480774f

Contents?: true

Size: 504 Bytes

Versions: 42

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true

module FinApps
  module REST
    class ConsumersPortfolios < FinAppsCore::REST::Resources
      include FinApps::Utils::QueryBuilder

      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
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
finapps-6.13.1 lib/finapps/rest/consumers_portfolios.rb
finapps-6.13.0 lib/finapps/rest/consumers_portfolios.rb
finapps-6.12.0 lib/finapps/rest/consumers_portfolios.rb
finapps-6.11.0 lib/finapps/rest/consumers_portfolios.rb
finapps-6.10.2 lib/finapps/rest/consumers_portfolios.rb
finapps-6.10.1 lib/finapps/rest/consumers_portfolios.rb
finapps-6.10.0 lib/finapps/rest/consumers_portfolios.rb
finapps-6.9.2 lib/finapps/rest/consumers_portfolios.rb
finapps-6.9.1 lib/finapps/rest/consumers_portfolios.rb
finapps-6.9.0 lib/finapps/rest/consumers_portfolios.rb
finapps-6.8.0 lib/finapps/rest/consumers_portfolios.rb
finapps-6.7.1 lib/finapps/rest/consumers_portfolios.rb
finapps-6.7.0 lib/finapps/rest/consumers_portfolios.rb
finapps-6.6.1 lib/finapps/rest/consumers_portfolios.rb
finapps-6.6.0 lib/finapps/rest/consumers_portfolios.rb
finapps-6.5.0 lib/finapps/rest/consumers_portfolios.rb
finapps-6.4.3 lib/finapps/rest/consumers_portfolios.rb
finapps-6.4.2 lib/finapps/rest/consumers_portfolios.rb
finapps-6.4.1 lib/finapps/rest/consumers_portfolios.rb
finapps-6.4.0 lib/finapps/rest/consumers_portfolios.rb