Sha256: daa642a644d61202a2dfe2b1fdf074317081092412e0bfca348bdaf5d17caed8

Contents?: true

Size: 638 Bytes

Versions: 40

Compression:

Stored size: 638 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?
        raise 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

40 entries across 40 versions & 1 rubygems

Version Path
finapps-5.0.32 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.31 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.30 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.29 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.28 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.27 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.26 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.25 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.24 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.23 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.22 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.21 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.20 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.19 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.17 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.16 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.15 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.14 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.13 lib/finapps/rest/alert_occurrences.rb
finapps-5.0.12 lib/finapps/rest/alert_occurrences.rb