Sha256: 4ba13a282975661f6c0a7e7e8d1420442cc5437660d25a2731f5e3bb7785e171

Contents?: true

Size: 801 Bytes

Versions: 5

Compression:

Stored size: 801 Bytes

Contents

# Joins {Metasploit::Model::Module::Instance} and {Metasploit::Model::Reference}.
module Metasploit::Model::Module::Reference
  extend ActiveModel::Naming
  extend ActiveSupport::Concern

  include Metasploit::Model::Translation

  included do
    include ActiveModel::Validations

    #
    # Validations
    #

    validates :module_instance, :presence => true
    validates :reference, :presence => true
  end

  #
  # Associations
  #

  # @!attribute [rw] module_instance
  #   {Metasploit::Model::Module::Instance Module} with {#reference}.
  #
  #   @return [Metasploit::Model::Module::Instance]

  # @!attribute [rw] reference
  #   {Metasploit::Model::Reference reference} to exploit or proof-of-concept (PoC) code for {#module_instance}.
  #
  #   @return [Metasploit::Model::Reference]
end

Version data entries

5 entries across 5 versions & 1 rubygems

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