Class: Nexpose::DiscoveryConnection::Criterion
- Defined in:
- lib/nexpose/discovery.rb
Overview
Override of filter criterion to account for proper JSON naming.
Instance Attribute Summary
Attributes inherited from Criterion
Class Method Summary collapse
-
.parseHash(hash) ⇒ Criterion
Create a Criterion object from a JSON-derived Hash.
Instance Method Summary collapse
-
#to_h ⇒ Object
Convert to Hash, which can be converted to JSON for API calls.
Methods inherited from Criterion
Constructor Details
This class inherits a constructor from Nexpose::Criterion
Class Method Details
Instance Method Details
#to_h ⇒ Object
Convert to Hash, which can be converted to JSON for API calls.
246 247 248 249 250 |
# File 'lib/nexpose/discovery.rb', line 246 def to_h { operator: operator, values: Array(value), field_name: field } end |