Class: GemGuard::VulnerableDependency

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dependency:, vulnerability:, recommended_fix:) ⇒ VulnerableDependency

Returns a new instance of VulnerableDependency.



80
81
82
83
84
# File 'lib/gem_guard/analyzer.rb', line 80

def initialize(dependency:, vulnerability:, recommended_fix:)
  @dependency = dependency
  @vulnerability = vulnerability
  @recommended_fix = recommended_fix
end

Instance Attribute Details

#dependencyObject (readonly)

Returns the value of attribute dependency.



78
79
80
# File 'lib/gem_guard/analyzer.rb', line 78

def dependency
  @dependency
end

Returns the value of attribute recommended_fix.



78
79
80
# File 'lib/gem_guard/analyzer.rb', line 78

def recommended_fix
  @recommended_fix
end

#vulnerabilityObject (readonly)

Returns the value of attribute vulnerability.



78
79
80
# File 'lib/gem_guard/analyzer.rb', line 78

def vulnerability
  @vulnerability
end