Sha256: 07b08190bdc01b116f7e5732c96d312c72406c9b0e8d9d9cb6c1e6fff2a1444e

Contents?: true

Size: 1007 Bytes

Versions: 22

Compression:

Stored size: 1007 Bytes

Contents

# A set of {#matches automatic exploitation matches}.
class MetasploitDataModels::AutomaticExploitation::MatchSet < ApplicationRecord
  #
  # Associations
  #

  # Runs of this set of {#matches}.
  has_many :runs,
           class_name: "MetasploitDataModels::AutomaticExploitation::Run",
           inverse_of: :match_set

  # Matches in this set.
  has_many :matches,
           class_name: "MetasploitDataModels::AutomaticExploitation::Match",
           inverse_of: :match_set,
           dependent: :destroy

  # User that created this match set.
  belongs_to :user,
             inverse_of: :automatic_exploitation_match_sets,
             class_name: "Mdm::User"

  # Workspace in which this match set exists.
  belongs_to :workspace,
             inverse_of: :automatic_exploitation_match_sets,
             class_name: "Mdm::Workspace"

  #
  # Validations
  #

  validates :user,
            presence: true

  validates :workspace,
            presence: true


  Metasploit::Concern.run(self)
end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
metasploit_data_models-4.0.1 app/models/metasploit_data_models/automatic_exploitation/match_set.rb
metasploit_data_models-4.0.0 app/models/metasploit_data_models/automatic_exploitation/match_set.rb