Sha256: 4ac38d73566f34c302f7d6a79d8b8722d9b90b980f0d4c4724169c0bccb083fd

Contents?: true

Size: 593 Bytes

Versions: 4

Compression:

Stored size: 593 Bytes

Contents

module LogStash; module Filters; module Empow;
  class LogStash::Filters::Empow::ClassificationRequest < Struct.new(:product_type, :product, :term, :is_src_internal, :is_dst_internal)
    def initialize(product_type, product, term, is_src_internal, is_dst_internal)
      if product_type.nil?
      	raise ArgumentError, 'product type cannot be empty' 
      end

      product_type = product_type.upcase.strip

      unless product.nil?
        product = product.downcase.strip
      end

      super(product_type, product, term, is_src_internal, is_dst_internal)
    end
  end
end; end; end;

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
logstash-filter-threats_classifier-1.0.4 lib/logstash/filters/classification-request.rb
logstash-filter-empowclassifier-1.0.2 lib/logstash/filters/classification-request.rb
logstash-filter-empowclassifier-1.0.1 lib/logstash/filters/classification-request.rb
logstash-filter-empowclassifier-1.0.0 lib/logstash/filters/classification-request.rb