class Metasploit::Model::Search::Operator::Deprecated::Platform

Translates `<name>:<value>` to the union of `platforms.name:<value>` and `targets.name:<value>` in order to support the `os` and `platform` operators.

Constants

FORMATTED_OPERATORS

Formatted operators that should be part of {#children} for this union.

Attributes

name[RW]

@!attribute [rw] name

Name of this operator

@return [Symbol]

Public Instance Methods

children(formatted_value) click to toggle source

Array of `platforms.fully_qualified_name:<formatted_value>` and `targets.name:<formatted_value>` operations.

@param formatted_value [String] value parsed from formatted operation. @return [Array<Metasploit::Model::Search::Operation::Base>]

# File app/models/metasploit/model/search/operator/deprecated/platform.rb, line 39
def children(formatted_value)
  FORMATTED_OPERATORS.collect { |formatted_operator|
    association_operator = operator(formatted_operator)
    association_operator.operate_on(formatted_value)
  }
end