Sha256: c7704ff680a33aa400e5dcb4b4852a5c7879c9843a979dc1cbbbd82d05f6d7cf

Contents?: true

Size: 751 Bytes

Versions: 5

Compression:

Stored size: 751 Bytes

Contents

# Model that joins {Metasploit::Model::Platform} and {Metasploit::Model::Module::Target}.
module Metasploit::Model::Module::Target::Platform
  extend ActiveModel::Naming
  extend ActiveSupport::Concern

  include Metasploit::Model::Translation

  included do
    include ActiveModel::Validations

    #
    # Validations
    #

    validates :module_target,
              presence: true
    validates :platform,
              presence: true
  end

  #
  # Associations
  #

  # @!attribute [rw] module_target
  #   The module target that supports {#platform}.
  #
  #   @return [Metasploit::Model::Module::Target]

  # @!attribute [rw] platform
  #   The platform supported by the {#module_target}.
  #
  #   @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/target/platform.rb
metasploit-model-0.28.0-java lib/metasploit/model/module/target/platform.rb
metasploit-model-0.28.0.pre.engine.pre.requires lib/metasploit/model/module/target/platform.rb
metasploit-model-0.27.4 lib/metasploit/model/module/target/platform.rb
metasploit-model-0.27.4-java lib/metasploit/model/module/target/platform.rb