Class: Metasploit::Model::Search::Operator::Deprecated::Authority
- Inherits:
-
Metasploit::Model::Search::Operator::Delegation
- Object
- Base
- Base
- Metasploit::Model::Search::Operator::Delegation
- Metasploit::Model::Search::Operator::Deprecated::Authority
- Defined in:
- app/models/metasploit/model/search/operator/deprecated/authority.rb
Overview
Operator for the direct, single authority reference search. Translates <abbreviation>:<designation>
to
authorities.abbreviation:<abbreviation> references.designation:<designation>
.
Instance Attribute Summary collapse
-
#abbreviation ⇒ String
(also: #name)
Value passed to
authorities.abbreviation
operator.
Attributes inherited from Base
Instance Method Summary collapse
-
#operate_on(formatted_value) ⇒ Array<Metasploit::Model::Search::Operation::Base>
Returns list of operations that search for the authority with #abbreviation and
formatted_value
for reference designation.
Methods inherited from Metasploit::Model::Search::Operator::Delegation
Methods included from Help
Methods inherited from Base
Constructor Details
This class inherits a constructor from Metasploit::Model::Base
Instance Attribute Details
#abbreviation ⇒ String Also known as: name
Value passed to authorities.abbreviation
operator
14 15 16 |
# File 'app/models/metasploit/model/search/operator/deprecated/authority.rb', line 14 def abbreviation @abbreviation end |
Instance Method Details
#operate_on(formatted_value) ⇒ Array<Metasploit::Model::Search::Operation::Base>
Returns list of operations that search for the authority with #abbreviation and formatted_value
for reference
designation.
34 35 36 37 38 39 40 41 42 43 44 |
# File 'app/models/metasploit/model/search/operator/deprecated/authority.rb', line 34 def operate_on(formatted_value) operations = [] = operator('authorities.abbreviation') operations << .operate_on(abbreviation) references_designation_operator = operator('references.designation') operations << references_designation_operator.operate_on(formatted_value) operations end |