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