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



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

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



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

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



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

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



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

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



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

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



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

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:



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

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