Sha256: d52ae1c2555ce2cf1f3365443f4be164d5470279a28f7a936ff05c1e8a68f46e

Contents?: true

Size: 858 Bytes

Versions: 22

Compression:

Stored size: 858 Bytes

Contents

# Join model between {Mdm::Service} and {Mdm::Task} that signifies that the {#task} found the {#service}.
class Mdm::TaskService < ApplicationRecord
  #
  # Associations
  #

  # The {Mdm::Service} found by {#task}.
  belongs_to :service,
             class_name: 'Mdm::Service',
             inverse_of: :task_services

  # An {Mdm::Task} that found {#service}.
  belongs_to :task,
             class_name: 'Mdm::Task',
             inverse_of: :task_services

  #
  # Attributes
  #

  # @!attribute created_at
  #   When this task service was created.
  #
  #   @return [DateTime]

  # @!attribute updated_at
  #   The last time this task service was updated.
  #
  #   @return [DateTime]

  #
  # Validations
  #

  validates :service_id,
            :uniqueness => {
                :scope => :task_id
            }

  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/task_service.rb
metasploit_data_models-6.0.5 app/models/mdm/task_service.rb
metasploit_data_models-6.0.4 app/models/mdm/task_service.rb
metasploit_data_models-6.0.3 app/models/mdm/task_service.rb
metasploit_data_models-6.0.2 app/models/mdm/task_service.rb
metasploit_data_models-6.0.1 app/models/mdm/task_service.rb
metasploit_data_models-6.0.0 app/models/mdm/task_service.rb
metasploit_data_models-5.0.6 app/models/mdm/task_service.rb
metasploit_data_models-5.0.5 app/models/mdm/task_service.rb
metasploit_data_models-5.0.4 app/models/mdm/task_service.rb
metasploit_data_models-5.0.3 app/models/mdm/task_service.rb
metasploit_data_models-5.0.2 app/models/mdm/task_service.rb
metasploit_data_models-5.0.1 app/models/mdm/task_service.rb
metasploit_data_models-5.0.0 app/models/mdm/task_service.rb
metasploit_data_models-4.1.4 app/models/mdm/task_service.rb
metasploit_data_models-4.1.3 app/models/mdm/task_service.rb
metasploit_data_models-4.1.2 app/models/mdm/task_service.rb
metasploit_data_models-4.1.1 app/models/mdm/task_service.rb
metasploit_data_models-4.1.0 app/models/mdm/task_service.rb
metasploit_data_models-4.0.2 app/models/mdm/task_service.rb