Sha256: 9b8f7e522e41927e6c68513aa9251b2d9b7cb28c55940872a85a1c7ac5c0c4be

Contents?: true

Size: 521 Bytes

Versions: 19

Compression:

Stored size: 521 Bytes

Contents

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

  belongs_to :task, :class_name => 'Mdm::Task'
  belongs_to :workspace, :class_name => 'Mdm::Workspace'

  #
  # Serializations
  #

  serialize :options, MetasploitDataModels::Base64Serializer.new

  #
  # Validations
  #

  validates :address, :ip_format => true, :presence => true
  validates :port, :presence => true, :numericality => { :only_integer => true }, :inclusion => {:in => 1..65535}


  ActiveSupport.run_load_hooks(:mdm_listener, self)
end

Version data entries

19 entries across 19 versions & 1 rubygems

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