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-5.0.34 lib/finapps/rest/portfolios_available_consumers.rb
finapps-5.0.33 lib/finapps/rest/portfolios_available_consumers.rb