Class: Metasploit::Model::Search::Operation::Association
- Defined in:
- app/models/metasploit/model/search/operation/association.rb
Overview
An operation with a Metasploit::Model::Search::Operator::Association for Base#operator that wraps a #source_operation produced by the Metasploit::Model::Search::Operator::Association#source_operator. This allows an arbitrary number of associations to be changed together until a non-association operation is found that actually validates the value.
Instance Attribute Summary collapse
-
#source_operation ⇒ Metasploit::Model::Search::Operation::Base
The operation from the Metasploit::Model::Search::Operator::Association#source_operator.
Attributes inherited from Base
Instance Method Summary collapse
-
#source_operation_valid ⇒ void
private
Validates that #source_operation is valid.
Methods inherited from Base
Methods inherited from Base
Constructor Details
This class inherits a constructor from Metasploit::Model::Base
Instance Attribute Details
#source_operation ⇒ Metasploit::Model::Search::Operation::Base
The operation from the Metasploit::Model::Search::Operator::Association#source_operator.
14 15 16 |
# File 'app/models/metasploit/model/search/operation/association.rb', line 14 def source_operation @source_operation end |
Instance Method Details
#source_operation_valid ⇒ void (private)
This method returns an undefined value.
Validates that #source_operation is valid.
49 50 51 52 53 54 55 56 |
# File 'app/models/metasploit/model/search/operation/association.rb', line 49 def source_operation_valid # presence validation handles errors when nil if source_operation unless source_operation.valid? errors.add(:source_operation, :invalid) end end end |