Class: Homebrew::Vulns::AdvisoryDatabase::Entry Private

Inherits:
Struct
  • Object
show all
Defined in:
vulns/advisory_database.rb

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fixObject

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of attribute fix

Returns:

  • (Object)

    the current value of fix



56
57
58
# File 'vulns/advisory_database.rb', line 56

def fix
  @fix
end

#fixed_inObject

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of attribute fixed_in

Returns:

  • (Object)

    the current value of fixed_in



56
57
58
# File 'vulns/advisory_database.rb', line 56

def fixed_in
  @fixed_in
end

#idObject

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



56
57
58
# File 'vulns/advisory_database.rb', line 56

def id
  @id
end

#severityObject

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



56
57
58
# File 'vulns/advisory_database.rb', line 56

def severity
  @severity
end

#summaryObject

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



56
57
58
# File 'vulns/advisory_database.rb', line 56

def summary
  @summary
end

#upstreamObject

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of attribute upstream

Returns:

  • (Object)

    the current value of upstream



56
57
58
# File 'vulns/advisory_database.rb', line 56

def upstream
  @upstream
end

Instance Method Details

#to_api_hashHash{String => T.untyped}

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:



58
59
60
# File 'vulns/advisory_database.rb', line 58

def to_api_hash
  to_h.transform_keys(&:to_s).compact
end