class Bundler::Audit::Results::InsecureSource


Represents an insecure gem source (ex: ‘git://…` or `http://…`).

def ==(other)

Returns:
  • (Boolean) -

Parameters:
  • other (Result) --
def ==(other)
  self.class == other.class && @source == other.source
end

def initialize(source)

Parameters:
  • source (URI::Generic, URI::HTTP) --
def initialize(source)
  @source = source
end

def to_h

Returns:
  • (Hash{Symbol => Object}) -
def to_h
  {
    type: :insecure_source,
    source: @source
  }
end

def to_s

Returns:
  • (String) -
def to_s
  @source.to_s
end