Class: Metasploit::Model::Search::Operator::Null
- Defined in:
- app/models/metasploit/model/search/operator/null.rb
Overview
Operator used when the formatted operator name does not match a class's operators.
Constant Summary
Constants inherited from Single
Single::MODULE_SEPARATOR, Single::OPERATION_NAMESPACE_NAME
Instance Attribute Summary collapse
-
#name ⇒ Symbol
The name of this operator that was not the name of a search operator for Base#klass.
Attributes inherited from Base
Instance Method Summary collapse
-
#name_invalid ⇒ void
private
Always records an error that name is not an operator name.
-
#operation_class ⇒ Class
protected
Null operation Class.
-
#type ⇒ nil
Null operators do not have a type since the attribute is unknown.
Methods inherited from Single
constant_name, #operate_on, #operation_class_name
Methods included from Help
Methods inherited from Base
Constructor Details
This class inherits a constructor from Metasploit::Model::Base
Instance Attribute Details
#name ⇒ Symbol
The name of this operator that was not the name of a search operator for Base#klass.
14 15 16 |
# File 'app/models/metasploit/model/search/operator/null.rb', line 14 def name @name end |
Instance Method Details
#name_invalid ⇒ void (private)
This method returns an undefined value.
Always records an error that name is not an operator name
43 44 45 |
# File 'app/models/metasploit/model/search/operator/null.rb', line 43 def name_invalid errors.add(:name, :unknown) end |
#operation_class ⇒ Class (protected)
Null operation Class.
34 35 36 |
# File 'app/models/metasploit/model/search/operator/null.rb', line 34 def operation_class Metasploit::Model::Search::Operation::Null end |
#type ⇒ nil
Null operators do not have a type since the attribute is unknown.
25 26 27 |
# File 'app/models/metasploit/model/search/operator/null.rb', line 25 def type nil end |