class Bundler::Audit::Results::InsecureSource
Represents an insecure gem source (ex: ‘git://…` or `http://…`).
Attributes
source[R]
The insecure ‘git://` or `http://` URI.
@return [URI::Generic, URI::HTTP]
Public Class Methods
new(source)
click to toggle source
Initializes the insecure source result.
@param [URI::Generic, URI::HTTP] source
The insecure `git://` or `http://` URI.
# File lib/bundler/audit/results/insecure_source.rb, line 39 def initialize(source) @source = source end
Public Instance Methods
==(other)
click to toggle source
Compares the insecure source with another result.
@param [Result] other
@return [Boolean]
# File lib/bundler/audit/results/insecure_source.rb, line 50 def ==(other) self.class == other.class && @source == other.source end
to_h()
click to toggle source
Converts the insecure source into a Hash.
@return [Hash{Symbol => Object}]
# File lib/bundler/audit/results/insecure_source.rb, line 68 def to_h { type: :insecure_source, source: @source } end
to_s()
click to toggle source
Converts the insecure source result to a String.
@return [String]
# File lib/bundler/audit/results/insecure_source.rb, line 59 def to_s @source.to_s end