Sha256: 01529de06dd84c7d9afbcaea79cceec09018afd9c9807362f53f66ef35fc3dba
Contents?: true
Size: 1.09 KB
Versions: 20
Compression:
Stored size: 1.09 KB
Contents
# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/api/dtm.pb' require 'contrast/components/base' module Contrast module Api module Decorators # Used to decorate the InstrumentationMode protobuf model to handle reporting Agent process start module InstrumentationMode include Contrast::Components::ComponentBase def self.included klass klass.extend(ClassMethods) end # Used to add class methods to the AgentStartup class on inclusion of the decorator module ClassMethods # Return a new DTM with the values from the configuration # # @return [Contrast::Api::Dtm::InstrumentationMode] def build msg = new msg.assess = ::Contrast::ASSESS.enabled? msg.protect = ::Contrast::PROTECT.enabled? msg end end end end end end Contrast::Api::Dtm::InstrumentationMode.include(Contrast::Api::Decorators::InstrumentationMode)
Version data entries
20 entries across 20 versions & 1 rubygems