Sha256: 5af8a9856d815fd0b85b48489cf37c0ade4c24485ffb9cbfae44edca1f3dc601

Contents?: true

Size: 1.21 KB

Versions: 18

Compression:

Stored size: 1.21 KB

Contents

module Metasploit
  module Model
    # Code shared between `Mdm::Author` and `Metasploit::Framework::Author`.
    module 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
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
metasploit-model-0.27.0.pre.dep.pre.railties lib/metasploit/model/author.rb
metasploit-model-0.26.1-java lib/metasploit/model/author.rb
metasploit-model-0.26.1 lib/metasploit/model/author.rb
metasploit-model-0.25.7 lib/metasploit/model/author.rb
metasploit-model-0.25.7-java lib/metasploit/model/author.rb
metasploit-model-0.25.6 lib/metasploit/model/author.rb
metasploit-model-0.25.6-java lib/metasploit/model/author.rb
metasploit-model-0.25.3 lib/metasploit/model/author.rb
metasploit-model-0.25.3-java lib/metasploit/model/author.rb
metasploit-model-0.25.2 lib/metasploit/model/author.rb
metasploit-model-0.25.2-java lib/metasploit/model/author.rb
metasploit-model-0.25.1 lib/metasploit/model/author.rb
metasploit-model-0.25.1-java lib/metasploit/model/author.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups-java lib/metasploit/model/author.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups lib/metasploit/model/author.rb
metasploit-model-0.24.1-java lib/metasploit/model/author.rb
metasploit-model-0.24.1 lib/metasploit/model/author.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 lib/metasploit/model/author.rb