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.
12 13 14 |
# File 'app/models/metasploit/model/search/operation/base.rb', line 12 def operator @operator end |
#value ⇒ String
The value cast to the correct type from the formatted_value from the formatted operation.
18 19 20 |
# File 'app/models/metasploit/model/search/operation/base.rb', line 18 def value @value end |
Instance Method Details
#operator_valid ⇒ void (private)
This method returns an undefined value.
Validates that #operator is valid
34 35 36 37 38 |
# File 'app/models/metasploit/model/search/operation/base.rb', line 34 def operator_valid if operator and !operator.valid? errors.add(:operator, :invalid, :value => operator) end end |