Sha256: 440974c8931a03a92ec7e53ff3a4857b0364790b22ca6acf5c50a9886bc6b1a1
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 KB
Contents
# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true module Contrast module Config # Common Configuration settings. Those in this section pertain to the protect functionality of the Agent. class ProtectConfiguration include Contrast::Config::BaseConfiguration # @return [Boolean, nil] attr_accessor :enable attr_writer :exceptions, :rules def initialize hsh = {} return unless hsh @exceptions = Contrast::Config::ExceptionConfiguration.new(hsh[:exceptions]) @rules = Contrast::Config::ProtectRulesConfiguration.new(hsh[:rules]) @enable = hsh[:enable] end # @return [Contrast::Config::ExceptionConfiguration] def exceptions @exceptions ||= Contrast::Config::ExceptionConfiguration.new end # @return [Contrast::Config::ProtectRulesConfiguration] def rules @rules ||= Contrast::Config::ProtectRulesConfiguration.new end end end end
Version data entries
7 entries across 7 versions & 1 rubygems