Class: Metasploit::Model::Search::Operator::Association
- Defined in:
- app/models/metasploit/model/search/operator/association.rb
Overview
A search operator declared with search_association.
Constant Summary
Constants inherited from Single
Single::MODULE_SEPARATOR, Single::OPERATION_NAMESPACE_NAME
Instance Attribute Summary collapse
-
#association ⇒ Symbol
The association on which Metasploit::Model::Search::Operator::Attribute#attribute is declared searchable.
-
#attribute_operator ⇒ Metasploit::Model::Search::Operator::Attribute
The operator as declared on the #association class.
Attributes inherited from Base
Instance Method Summary collapse
-
#name ⇒ String
The name of this operator.
Methods inherited from Single
constant_name, #operate_on, #operation_class, #operation_class_name, #type
Methods included from Help
Methods inherited from Base
Constructor Details
This class inherits a constructor from Metasploit::Model::Base
Instance Attribute Details
#association ⇒ Symbol
The association on which Metasploit::Model::Search::Operator::Attribute#attribute is declared searchable.
12 13 14 |
# File 'app/models/metasploit/model/search/operator/association.rb', line 12 def association @association end |
#attribute_operator ⇒ Metasploit::Model::Search::Operator::Attribute
The operator as declared on the #association class.
18 19 20 |
# File 'app/models/metasploit/model/search/operator/association.rb', line 18 def attribute_operator @attribute_operator end |
Instance Method Details
#name ⇒ String
The name of this operator.
40 41 42 |
# File 'app/models/metasploit/model/search/operator/association.rb', line 40 def name @name ||= "#{association}.#{attribute}".to_sym end |