Sha256: dca0550394833660da7a3d376ad9ce881e0d1570b1f96e9dcf96a6703a7ca4a9
Contents?: true
Size: 723 Bytes
Versions: 13
Compression:
Stored size: 723 Bytes
Contents
# Copyright (c) 2021 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
13 entries across 13 versions & 1 rubygems