Sha256: 6fc7d6970c160e8953909e06303f661913bbf6ba134cddb85e56e77216f83fa5

Contents?: true

Size: 620 Bytes

Versions: 3

Compression:

Stored size: 620 Bytes

Contents

# {#name Platform} on which the {#detail Metasploit Module} can run.
class Mdm::Module::Platform < ActiveRecord::Base
  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]

  #
  # Mass Assignment Security
  #

  attr_accessible :name

  #
  # Validations
  #

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

  Metasploit::Concern.run(self)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
metasploit_data_models-0.24.4 app/models/mdm/module/platform.rb
metasploit_data_models-0.24.3 app/models/mdm/module/platform.rb
metasploit_data_models-0.24.2 app/models/mdm/module/platform.rb