Sha256: 9b0f466d4f8cf9060a8d511a6edfab98262a87925cafb8f6600a73c0295f1178
Contents?: true
Size: 723 Bytes
Versions: 11
Compression:
Stored size: 723 Bytes
Contents
# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/utils/string_utils' module Contrast module Api module Decorators # Used to decorate the {Contrast::Api::Settings::ServerFeatures} protobuf # model to handle setting translation to boolean values. module ServerFeatures # 'defend' is legacy for 'protect' in the dtm. def protect_enabled? !!defend.enabled end def assess_enabled? !!assess.enabled end end end end end Contrast::Api::Settings::ServerFeatures.include(Contrast::Api::Decorators::ServerFeatures)
Version data entries
11 entries across 11 versions & 1 rubygems