Class: TruffleHogSecretDetector::Finding
- Inherits:
-
Object
- Object
- TruffleHogSecretDetector::Finding
- Defined in:
- lib/secret_detector.rb
Instance Attribute Summary collapse
-
#detector_name ⇒ Object
readonly
Returns the value of attribute detector_name.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#match ⇒ Object
readonly
Returns the value of attribute match.
-
#pattern_name ⇒ Object
readonly
Returns the value of attribute pattern_name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#verified ⇒ Object
(also: #confidence)
readonly
Returns the value of attribute verified.
Instance Method Summary collapse
-
#initialize(detector_name, match, verified, line = nil) ⇒ Finding
constructor
A new instance of Finding.
Constructor Details
#initialize(detector_name, match, verified, line = nil) ⇒ Finding
Returns a new instance of Finding.
8 9 10 11 12 13 14 15 |
# File 'lib/secret_detector.rb', line 8 def initialize(detector_name, match, verified, line = nil) @type = 'secret' @pattern_name = detector_name @detector_name = detector_name @match = match @verified = verified @line = line end |
Instance Attribute Details
#detector_name ⇒ Object (readonly)
Returns the value of attribute detector_name.
6 7 8 |
# File 'lib/secret_detector.rb', line 6 def detector_name @detector_name end |
#line ⇒ Object (readonly)
Returns the value of attribute line.
6 7 8 |
# File 'lib/secret_detector.rb', line 6 def line @line end |
#match ⇒ Object (readonly)
Returns the value of attribute match.
6 7 8 |
# File 'lib/secret_detector.rb', line 6 def match @match end |
#pattern_name ⇒ Object (readonly)
Returns the value of attribute pattern_name.
6 7 8 |
# File 'lib/secret_detector.rb', line 6 def pattern_name @pattern_name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/secret_detector.rb', line 6 def type @type end |
#verified ⇒ Object (readonly) Also known as: confidence
Returns the value of attribute verified.
6 7 8 |
# File 'lib/secret_detector.rb', line 6 def verified @verified end |