Class: Metasploit::Model::Search::Operator::Base Abstract
- Includes:
- ActiveModel::Validations, Help
- Defined in:
- app/models/metasploit/model/search/operator/base.rb
Overview
This class is abstract.
Declare search operators using ClassMethods#search_attribute and include operators from associations with ClassMethods#search_association.
A search operator.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#klass ⇒ Class
The class on which this operator is usable.
Instance Method Summary collapse
-
#name ⇒ String
abstract
Name of this operator.
Methods included from Help
Methods inherited from Base
Constructor Details
This class inherits a constructor from Metasploit::Model::Base
Instance Attribute Details
#klass ⇒ Class
The class on which this operator is usable.
17 18 19 |
# File 'app/models/metasploit/model/search/operator/base.rb', line 17 def klass @klass end |
Instance Method Details
#name ⇒ String
This method is abstract.
subclass and derive operator name from attributes of subclass.
Name of this operator.
31 32 33 |
# File 'app/models/metasploit/model/search/operator/base.rb', line 31 def name raise NotImplementedError end |