Sha256: 201e309c8afe07b86451236976a2d1f440bff33c6a88c5b165fa8f6f80a0c504
Contents?: true
Size: 700 Bytes
Versions: 2
Compression:
Stored size: 700 Bytes
Contents
# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'forwardable' require 'contrast/utils/object_share' module Contrast module Config # This is the base for our configuration classes. It is intended to facilitate the translation of the Common # Configuration settings to usable Ruby classes. module BaseConfiguration extend Forwardable def to_hash hsh = {} instance_variables.each do |iv| # strip the '@' to get the key key = iv.to_s[1..] hsh[key] = send(key.to_sym) end hsh end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
contrast-agent-6.4.0 | lib/contrast/config/base_configuration.rb |
contrast-agent-6.3.0 | lib/contrast/config/base_configuration.rb |