Sha256: 140eb87ec91b884b89483ab99f358c078a889782d5c522fcbaf07b9a5032b41e
Contents?: true
Size: 1.16 KB
Versions: 4
Compression:
Stored size: 1.16 KB
Contents
# Copyright (c) 2021 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/interface' 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 include Contrast::Components::Interface access_component :analysis 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 = ASSESS.enabled? msg.protect = PROTECT.enabled? msg end end end end end end Contrast::Api::Dtm::InstrumentationMode.include(Contrast::Api::Decorators::InstrumentationMode)
Version data entries
4 entries across 4 versions & 1 rubygems