Module: Metasploit::Model::Module::Rank
- Extended by:
- ActiveModel::Naming, ActiveSupport::Concern
- Includes:
- Translation
- Defined in:
- lib/metasploit/model/module/rank.rb
Overview
Code shared between Mdm::Module::Rank
and Metasploit::Framework::Module::Rank
.
Constant Summary collapse
- NAME_REGEXP =
Regular expression to ensure that #name is a word starting with a capital letter
/\A[A-Z][a-z]+\Z/
- NUMBER_BY_NAME =
{ 'Manual' => 0, 'Low' => 100, 'Average' => 200, 'Normal' => 300, 'Good' => 400, 'Great' => 500, 'Excellent' => 600 }
- NAME_BY_NUMBER =
NUMBER_BY_NAME.invert
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the rank.
-
#number ⇒ Integer
The numerical value of the rank.
Instance Attribute Details
#name ⇒ String
The name of the rank.
|
# File 'lib/metasploit/model/module/rank.rb', line 81
|
#number ⇒ Integer
The numerical value of the rank. Higher numbers are better.
|
# File 'lib/metasploit/model/module/rank.rb', line 86
|