Sha256: 1162828387c0d1321af9ca5051da795f2ca8f0cc4d5bb82dd4537d445c40ffd8

Contents?: true

Size: 637 Bytes

Versions: 42

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true

module FinApps
  module REST
    class AlertOccurrences < FinAppsCore::REST::Resources
      include FinApps::Utils::QueryBuilder
      END_POINT = 'portfolio/alerts/occurrences'

      def list(params = nil)
        return super END_POINT if params.nil?
        fail FinAppsCore::InvalidArgumentsError, 'Invalid argument: params' unless params.is_a? Hash

        super build_query_path(END_POINT, params)
      end

      private

      def build_filter(params)
        filter = {}
        filter[:portfolio_id] = params[:portfolio_id] if params[:portfolio_id]
        filter
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
finapps-6.3.1 lib/finapps/rest/alert_occurrences.rb
finapps-6.3.0 lib/finapps/rest/alert_occurrences.rb
finapps-6.2.0 lib/finapps/rest/alert_occurrences.rb
finapps-6.1.0 lib/finapps/rest/alert_occurrences.rb
finapps-6.0.0 lib/finapps/rest/alert_occurrences.rb
finapps-5.4.1 lib/finapps/rest/alert_occurrences.rb
finapps-5.4.0 lib/finapps/rest/alert_occurrences.rb
finapps-5.3.0 lib/finapps/rest/alert_occurrences.rb
finapps-5.2.1 lib/finapps/rest/alert_occurrences.rb
finapps-5.2.0 lib/finapps/rest/alert_occurrences.rb
finapps-5.1.0 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.47 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.46 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.45 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.44 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.43 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.41 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.38 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.36 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.35 lib/finapps/rest/alert_occurrences.rb