Sha256: f2290f14dabb330ae658ea13873095185b182f3c72f12a89135deb8aa0f0a3ae
Contents?: true
Size: 822 Bytes
Versions: 5
Compression:
Stored size: 822 Bytes
Contents
class Mdm::NexposeConsole < ActiveRecord::Base # # Associations # # @!attribute vuln_details # Details for vulnerabilities supplied by this Nexpose console. # # @return [ActiveRecord::Relation<Mdm::VulnDetail>] has_many :vuln_details, class_name: 'Mdm::VulnDetail', foreign_key: :nx_console_id, inverse_of: :nexpose_console # # Serializations # serialize :cached_sites, MetasploitDataModels::Base64Serializer.new # # Validations # validates :address, :presence => true validates :name, :presence => true validates :password, :presence => true validates :port, :numericality => { :only_integer => true }, :inclusion => {:in => 1..65535} validates :username, :presence => true ActiveSupport.run_load_hooks(:mdm_nexpose_console, self) end
Version data entries
5 entries across 5 versions & 1 rubygems