Sha256: fc43a256400b7d26d770f5def7126659a117bf9976ad8f10c14622e92f7bdb6e

Contents?: true

Size: 839 Bytes

Versions: 2

Compression:

Stored size: 839 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/api/dtm.pb'
require 'protobuf/message'

module Contrast
  module Api
    module Decorators
      # Used to decorate the {Contrast::Api::Dtm::AttackResult::ResponseType} protobuf
      # model so it can add SUSPICIOUS.
      module ResponseType
        ::Protobuf::Enum.define(:SUSPICIOUS, 6)

        def self.included klass
          klass.extend(ClassMethods)
        end

        # Used to add class methods to the  class on inclusion of the decorator
        module ClassMethods
          def build
            new
          end
        end
      end
    end
  end
end

Contrast::Api::Dtm::AttackResult::ResponseType.include(Contrast::Api::Decorators::ResponseType)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contrast-agent-6.1.0 lib/contrast/api/decorators/response_type.rb
contrast-agent-6.0.0 lib/contrast/api/decorators/response_type.rb