Sha256: 823117ce2b31acc03e5fc013152a3578f03472467c6f1a8abcfbc91bda5b2a8e

Contents?: true

Size: 556 Bytes

Versions: 22

Compression:

Stored size: 556 Bytes

Contents

# {#name Platform} on which the {#detail Metasploit Module} can run.
class Mdm::Module::Platform < ApplicationRecord
  self.table_name = 'module_platforms'

  #
  # Associations
  #

  # The Metasploit Module that can run on the {#name named} platform.
  belongs_to :detail, :class_name => 'Mdm::Module::Detail'

  #
  # Attributes
  #

  # @!attribute name
  #   The name of the platform.
  #
  #   @return [String]

  #
  # Validations
  #

  validates :detail, :presence => true
  validates :name, :presence => true

  Metasploit::Concern.run(self)
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
wg-metasploit_data_models-4.1.4.02 app/models/mdm/module/platform.rb
metasploit_data_models-6.0.5 app/models/mdm/module/platform.rb
metasploit_data_models-6.0.4 app/models/mdm/module/platform.rb
metasploit_data_models-6.0.3 app/models/mdm/module/platform.rb
metasploit_data_models-6.0.2 app/models/mdm/module/platform.rb
metasploit_data_models-6.0.1 app/models/mdm/module/platform.rb
metasploit_data_models-6.0.0 app/models/mdm/module/platform.rb
metasploit_data_models-5.0.6 app/models/mdm/module/platform.rb
metasploit_data_models-5.0.5 app/models/mdm/module/platform.rb
metasploit_data_models-5.0.4 app/models/mdm/module/platform.rb
metasploit_data_models-5.0.3 app/models/mdm/module/platform.rb
metasploit_data_models-5.0.2 app/models/mdm/module/platform.rb
metasploit_data_models-5.0.1 app/models/mdm/module/platform.rb
metasploit_data_models-5.0.0 app/models/mdm/module/platform.rb
metasploit_data_models-4.1.4 app/models/mdm/module/platform.rb
metasploit_data_models-4.1.3 app/models/mdm/module/platform.rb
metasploit_data_models-4.1.2 app/models/mdm/module/platform.rb
metasploit_data_models-4.1.1 app/models/mdm/module/platform.rb
metasploit_data_models-4.1.0 app/models/mdm/module/platform.rb
metasploit_data_models-4.0.2 app/models/mdm/module/platform.rb