Class: TruffleHogSecretDetector::Finding

Inherits:
Object
  • Object
show all
Defined in:
lib/secret_detector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (readonly)

Returns the value of attribute detector_name.



6
7
8
# File 'lib/secret_detector.rb', line 6

def detector_name
  @detector_name
end

#lineObject (readonly)

Returns the value of attribute line.



6
7
8
# File 'lib/secret_detector.rb', line 6

def line
  @line
end

#matchObject (readonly)

Returns the value of attribute match.



6
7
8
# File 'lib/secret_detector.rb', line 6

def match
  @match
end

#pattern_nameObject (readonly)

Returns the value of attribute pattern_name.



6
7
8
# File 'lib/secret_detector.rb', line 6

def pattern_name
  @pattern_name
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/secret_detector.rb', line 6

def type
  @type
end

#verifiedObject (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