Sha256: 6a39aa1f67e3d957b83639b3a07a2d44f3b5077499933b1a53ce92ccadec9760

Contents?: true

Size: 606 Bytes

Versions: 42

Compression:

Stored size: 606 Bytes

Contents

# frozen_string_literal: true

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

      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

      def show(id)
        not_blank(id, :id)
        path = "#{END_POINT}/#{ERB::Util.url_encode(id)}"

        super nil, path
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

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