Sha256: 3e72d63489ac308d625d4569e55f450aefef0cb58c944d21b76da216f3aadbdb

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

# Code shared between `Mdm::Author` and `Metasploit::Framework::Author`.
module Metasploit::Model::Author
  extend ActiveModel::Naming
  extend ActiveSupport::Concern

  include Metasploit::Model::Translation

  included do
    include ActiveModel::MassAssignmentSecurity
    include ActiveModel::Validations
    include Metasploit::Model::Search

    #
    # Mass Assignment Security
    #

    attr_accessible :name

    #
    # Search Attributes
    #

    search_attribute :name, :type => :string

    #
    # Validations
    #

    validates :name, :presence => true
  end

  #
  # Associations
  #

  # @!attribute [r] email_addresses
  #   Email addresses used by this author across all {#module_instances}.
  #
  #   @return [Array<Metasploit::Model::EmailAddress>]

  # @!attribute [r] module_instances
  #   Modules written by this author.
  #
  #   @return [Array<Metasploit::Model::Module::Instance>]

  #
  # Attributes
  #

  # @!attribute [rw] name
  #   Full name (First + Last name) or handle of author.
  #
  #   @return [String]
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metasploit-model-0.28.0 lib/metasploit/model/author.rb
metasploit-model-0.28.0-java lib/metasploit/model/author.rb
metasploit-model-0.28.0.pre.engine.pre.requires lib/metasploit/model/author.rb
metasploit-model-0.27.4 lib/metasploit/model/author.rb
metasploit-model-0.27.4-java lib/metasploit/model/author.rb