Sha256: 33503a0737d501968ea03dda400fc9b9d7199448e0593a01524e041f99c3124f
Contents?: true
Size: 1.07 KB
Versions: 18
Compression:
Stored size: 1.07 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/utils/string_utils' require 'contrast/components/base' module Contrast module Api module Decorators # Used to decorate the {Contrast::Api::Dtm::BotBlockerDetails} protobuf # model so it can own the request which its data is for. module BotBlockerDetails def self.included klass klass.extend(ClassMethods) end # Used to add class methods to the AgentStartup class on inclusion of the decorator module ClassMethods def build new end # @param result [Contrast::Api::Dtm::BotBlockerDetails] def to_controlled_hash result { bot: result.bot, user_agent: result.user_agent } end end end end end end Contrast::Api::Dtm::BotBlockerDetails.include(Contrast::Api::Decorators::BotBlockerDetails)
Version data entries
18 entries across 18 versions & 1 rubygems