Class: Metasploit::Model::Search::Operator::Attribute
- Defined in:
- app/models/metasploit/model/search/operator/attribute.rb
Overview
A search operator declared with search_attribute.
Constant Summary collapse
- TYPES =
The valid types.
[ :boolean, :date, :integer, { set: :integer }, { set: :string }, :string, :jsonb ]
Constants inherited from Single
Single::MODULE_SEPARATOR, Single::OPERATION_NAMESPACE_NAME
Instance Attribute Summary collapse
-
#attribute ⇒ Symbol
(also: #name)
The attribute on klass that is searchable.
-
#type ⇒ Symbol
The type of #attribute.
Attributes inherited from Base
Instance Method Summary collapse
-
#attribute_set ⇒ Enumerable, #include?
Set for #attribute as provided by #klass.
Methods inherited from Single
constant_name, #operate_on, #operation_class, #operation_class_name
Methods included from Help
Methods inherited from Base
Constructor Details
This class inherits a constructor from Metasploit::Model::Base
Instance Attribute Details
#attribute ⇒ Symbol Also known as: name
The attribute on klass that is searchable.
31 32 33 |
# File 'app/models/metasploit/model/search/operator/attribute.rb', line 31 def attribute @attribute end |
#type ⇒ Symbol
The type of #attribute.
37 38 39 |
# File 'app/models/metasploit/model/search/operator/attribute.rb', line 37 def type @type end |
Instance Method Details
#attribute_set ⇒ Enumerable, #include?
Set for #attribute as provided by #klass.
56 57 58 |
# File 'app/models/metasploit/model/search/operator/attribute.rb', line 56 def attribute_set klass.send("#{attribute}_set") end |