Sha256: 64412e241740ea0488c6d616b12e92a80384a8160133340f8d33344e892060f5

Contents?: true

Size: 578 Bytes

Versions: 42

Compression:

Stored size: 578 Bytes

Contents

# frozen_string_literal: true

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

      def list(portfolio_id, params = nil)
        not_blank(portfolio_id, :portfolio_id)

        path =
          "portfolios/#{ERB::Util.url_encode(portfolio_id)}/consumers/available"
        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/portfolios_available_consumers.rb
finapps-6.13.0 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.12.0 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.11.0 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.10.2 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.10.1 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.10.0 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.9.2 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.9.1 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.9.0 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.8.0 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.7.1 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.7.0 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.6.1 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.6.0 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.5.0 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.4.3 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.4.2 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.4.1 lib/finapps/rest/portfolios_available_consumers.rb
finapps-6.4.0 lib/finapps/rest/portfolios_available_consumers.rb