Class: Metasploit::Model::Search::Operation::Base
- Defined in:
- app/models/metasploit/model/search/operation/base.rb
Overview
Direct Known Subclasses
Association, Boolean, Date, Group::Base, Integer, Null, Set, String
Instance Attribute Summary collapse
-
#operator ⇒ Metasploit::Model::Search::Operator::Base
The operator operating on #value.
-
#value ⇒ String
The value cast to the correct type from the formatted_value from the formatted operation.
Instance Method Summary collapse
-
#operator_valid ⇒ void
private
Validates that #operator is valid.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Metasploit::Model::Base
Instance Attribute Details
#operator ⇒ Metasploit::Model::Search::Operator::Base
The operator operating on #value.
15 16 17 |
# File 'app/models/metasploit/model/search/operation/base.rb', line 15 def operator @operator end |
#value ⇒ String
The value cast to the correct type from the formatted_value from the formatted operation.
21 22 23 |
# File 'app/models/metasploit/model/search/operation/base.rb', line 21 def value @value end |
Instance Method Details
#operator_valid ⇒ void (private)
This method returns an undefined value.
Validates that #operator is valid
37 38 39 40 41 |
# File 'app/models/metasploit/model/search/operation/base.rb', line 37 def operator_valid if operator and !operator.valid? errors.add(:operator, :invalid, :value => operator) end end |