Sha256: 49627e859572f636c7dfb869cd91daf4c260c936fc1b09834838d8d165afba82

Contents?: true

Size: 576 Bytes

Versions: 59

Compression:

Stored size: 576 Bytes

Contents

class Mdm::Event < ActiveRecord::Base
  #
  # Relations
  #

  belongs_to :host,
             class_name: 'Mdm::Host',
             inverse_of: :events

  belongs_to :workspace,
             class_name: 'Mdm::Workspace',
             inverse_of: :events

  #
  # Scopes
  #

  scope :flagged, where(:critical => true, :seen => false)
  scope :module_run, where(:name => 'module_run')

  #
  # Serializations
  #

  serialize :info, MetasploitDataModels::Base64Serializer.new

  #
  # Validations
  #

  validates :name, :presence => true

  Metasploit::Concern.run(self)
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
metasploit_data_models-0.24.5 app/models/mdm/event.rb
metasploit_data_models-0.24.1.pre.rspec.pre.3.pre.1 app/models/mdm/event.rb
metasploit_data_models-0.24.1 app/models/mdm/event.rb
metasploit_data_models-0.24.0 app/models/mdm/event.rb
metasploit_data_models-0.23.3.pre.autoload app/models/mdm/event.rb
metasploit_data_models-0.23.2 app/models/mdm/event.rb
metasploit_data_models-0.23.2-java app/models/mdm/event.rb
metasploit_data_models-0.23.1 app/models/mdm/event.rb
metasploit_data_models-0.23.1-java app/models/mdm/event.rb
metasploit_data_models-0.23.0 app/models/mdm/event.rb
metasploit_data_models-0.23.0-java app/models/mdm/event.rb
metasploit_data_models-0.22.8 app/models/mdm/event.rb
metasploit_data_models-0.22.8-java app/models/mdm/event.rb
metasploit_data_models-0.22.7 app/models/mdm/event.rb
metasploit_data_models-0.22.7-java app/models/mdm/event.rb
metasploit_data_models-0.22.6 app/models/mdm/event.rb
metasploit_data_models-0.22.6-java app/models/mdm/event.rb
metasploit_data_models-0.22.5 app/models/mdm/event.rb
metasploit_data_models-0.22.5-java app/models/mdm/event.rb
metasploit_data_models-0.22.4 app/models/mdm/event.rb