Sha256: a3cf7f7921bb36580127af4820ca80edf0b36fdaabb33e18bdf24e589482b769

Contents?: true

Size: 699 Bytes

Versions: 5

Compression:

Stored size: 699 Bytes

Contents

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

  include Metasploit::Model::Translation

  included do
    include ActiveModel::Validations

    #
    # Validations
    #

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

  #
  # Associations
  #

  # @!attribute [rw] module_instance
  #   Module that supports {#platform}.
  #
  #   @return [Metasploit::Model::Module::Instance]

  # @!attribute [rw] platform
  #  Platform supported by {#module_instance}.
  #
  #  @return [Metasploit::Model::Platform]
end

Version data entries

5 entries across 5 versions & 1 rubygems

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