Sha256: 319c1744340b05a5ca0b907b6ce9caec667a543417546b5b8a3017b4c3786c8e

Contents?: true

Size: 504 Bytes

Versions: 43

Compression:

Stored size: 504 Bytes

Contents

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

  belongs_to :host, :class_name => 'Mdm::Host'
  belongs_to :workspace, :class_name => 'Mdm::Workspace'

  #
  # 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

  ActiveSupport.run_load_hooks(:mdm_event, self)
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
metasploit_data_models-0.17.0-java app/models/mdm/event.rb
metasploit_data_models-0.17.0 app/models/mdm/event.rb
metasploit_data_models-0.16.9 app/models/mdm/event.rb
metasploit_data_models-0.16.9-java app/models/mdm/event.rb
metasploit_data_models-0.16.8 app/models/mdm/event.rb
metasploit_data_models-0.16.8-java app/models/mdm/event.rb
metasploit_data_models-0.16.7-java app/models/mdm/event.rb
metasploit_data_models-0.16.7 app/models/mdm/event.rb
metasploit_data_models-0.16.6-java app/models/mdm/event.rb
metasploit_data_models-0.16.6 app/models/mdm/event.rb
metasploit_data_models-0.16.5-java app/models/mdm/event.rb
metasploit_data_models-0.16.5 app/models/mdm/event.rb
metasploit_data_models-0.16.4-java app/models/mdm/event.rb
metasploit_data_models-0.16.4 app/models/mdm/event.rb
metasploit_data_models-0.16.3-java app/models/mdm/event.rb
metasploit_data_models-0.16.1-java app/models/mdm/event.rb
metasploit_data_models-0.16.1 app/models/mdm/event.rb
metasploit_data_models-0.16.0-java app/models/mdm/event.rb
metasploit_data_models-0.16.0 app/models/mdm/event.rb
metasploit_data_models-0.15.2-java app/models/mdm/event.rb