Class: SecurityReport::InsecureSourceResult
- Inherits:
-
Object
- Object
- SecurityReport::InsecureSourceResult
- Defined in:
- lib/security_report/insecure_source_result.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Class Method Summary collapse
Instance Method Summary collapse
- #criticality ⇒ Object
-
#initialize(scan_result, target) ⇒ InsecureSourceResult
constructor
A new instance of InsecureSourceResult.
- #problem ⇒ Object
- #solution ⇒ Object
Constructor Details
#initialize(scan_result, target) ⇒ InsecureSourceResult
Returns a new instance of InsecureSourceResult.
6 7 8 9 |
# File 'lib/security_report/insecure_source_result.rb', line 6 def initialize(scan_result, target) @identifier = scan_result.source @target = target end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
3 4 5 |
# File 'lib/security_report/insecure_source_result.rb', line 3 def identifier @identifier end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
4 5 6 |
# File 'lib/security_report/insecure_source_result.rb', line 4 def target @target end |
Class Method Details
.matches?(obj) ⇒ Boolean
23 24 25 |
# File 'lib/security_report/insecure_source_result.rb', line 23 def self.matches?(obj) obj.instance_of? ::Bundler::Audit::Scanner::InsecureSource end |
Instance Method Details
#criticality ⇒ Object
19 20 21 |
# File 'lib/security_report/insecure_source_result.rb', line 19 def criticality :high end |
#problem ⇒ Object
11 12 13 |
# File 'lib/security_report/insecure_source_result.rb', line 11 def problem Problem.new("Insecure URI", "Do not use an insecure Source URI", nil) end |
#solution ⇒ Object
15 16 17 |
# File 'lib/security_report/insecure_source_result.rb', line 15 def solution "Use a secure URI" end |