Sha256: 5ecdf55927e30c7576617c8de629a950b712a7029cce2dd3ebc382d837cda0c5
Contents?: true
Size: 945 Bytes
Versions: 5
Compression:
Stored size: 945 Bytes
Contents
# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/utils/string_utils' module Contrast module Api module Decorators # Used to decorate the LibraryUsageUpdate protobuf module LibraryUsageUpdate def self.included klass klass.extend(ClassMethods) end # Used to add class methods to the LibraryUsageUpdate class on inclusion of the decorator module ClassMethods def build digest, files msg = new msg.hash_code = Contrast::Utils::StringUtils.force_utf8(digest) files.each do |required_file| msg.class_names[required_file] = true end msg end end end end end end Contrast::Api::Dtm::LibraryUsageUpdate.include(Contrast::Api::Decorators::LibraryUsageUpdate)
Version data entries
5 entries across 5 versions & 1 rubygems