Sha256: 45e91a2afa7efe826ff840d2628745b20d16b5ee0d7cd2b19b1d84143e66ab82

Contents?: true

Size: 699 Bytes

Versions: 3

Compression:

Stored size: 699 Bytes

Contents

# The {#email} and {#name} of an author of a {#detail Metasploit Module}.
class Mdm::Module::Author < ActiveRecord::Base
  self.table_name = 'module_authors'

  #
  # Associations
  #

  # The authored Metasploit Module.
  belongs_to :detail, :class_name => 'Mdm::Module::Detail'

  #
  # Attributes
  #

  # @!attribute email
  #   The email address of the author.
  #
  #   @return [String]

  # @!attribute name
  #   The name of the author.
  #
  #   @return [String]

  #
  # Mass Assignment Security
  #

  attr_accessible :email
  attr_accessible :name

  #
  # Validations
  #

  validates :detail, :presence => true
  validates :name, :presence => true

  Metasploit::Concern.run(self)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
metasploit_data_models-0.24.4 app/models/mdm/module/author.rb
metasploit_data_models-0.24.3 app/models/mdm/module/author.rb
metasploit_data_models-0.24.2 app/models/mdm/module/author.rb