Sha256: a6ebd69c6b9bb7cb52e9c03ed33c3a1ed42c1b472b730fcf0e6f8400f51ee0b5

Contents?: true

Size: 1 KB

Versions: 18

Compression:

Stored size: 1 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::VirtualPatchDetails} protobuf
      # model so it can own the request which its data is for.
      module VirtualPatchDetails
        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::VirtualPatchDetails]
          def to_controlled_hash result
            { uuid: result.uuid }
          end
        end
      end
    end
  end
end

Contrast::Api::Dtm::VirtualPatchDetails.include(Contrast::Api::Decorators::VirtualPatchDetails)

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
contrast-agent-6.7.0 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.6.5 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.6.4 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.6.3 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.6.2 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.6.1 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.6.0 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.5.1 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.5.0 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.4.0 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.3.0 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.2.0 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.1.2 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.1.1 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.1.0 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-6.0.0 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-5.3.0 lib/contrast/api/decorators/virtual_patch.rb
contrast-agent-5.2.0 lib/contrast/api/decorators/virtual_patch.rb