Class: Mdm::Module::Ref

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/mdm/module/ref.rb

Overview

External references to the vulnerability exploited by this module.

Instance Attribute Summary collapse

Instance Attribute Details

#detailMdm::Module::Detail

The root of the module metadata tree.

Returns:



13
# File 'app/models/mdm/module/ref.rb', line 13

belongs_to :detail, :class_name => 'Mdm::Module::Detail'

#nameString

Designation for external reference. May include a prefix for the authority, such as 'CVE-', in which case the rest of the name is the designation assigned by that authority.

Returns:

  • (String)


# File 'app/models/mdm/module/ref.rb', line 28

#refsArray<Mdm::Ref> (readonly)

References with the same name attached to Mdm::Vulns.

Returns:



19
20
21
22
# File 'app/models/mdm/module/ref.rb', line 19

has_many :refs,
:class_name => 'Mdm::Ref',
:foreign_key => :name,
:primary_key => :name