class Metasploit::Model::Search::Operator::Null

Operator used when the formatted operator name does not match a class's operators.

Attributes

name[RW]

@!attribute [rw] name

The name of this operator that was not the name of a search operator for
{Metasploit::Model::Search::Operator::Base#klass}.

@return [Symbol]

Public Instance Methods

type() click to toggle source

Null operators do not have a type since the attribute is unknown.

@return [nil]

# File app/models/metasploit/model/search/operator/null.rb, line 23
def type
  nil
end

Protected Instance Methods

operation_class() click to toggle source

Null operation Class.

@return [Class] {Metasploit::Model::Search::Operation::Null}

# File app/models/metasploit/model/search/operator/null.rb, line 32
def operation_class
  Metasploit::Model::Search::Operation::Null
end

Private Instance Methods

name_invalid() click to toggle source

Always records an error that name is not an operator name

@return [void]

# File app/models/metasploit/model/search/operator/null.rb, line 41
def name_invalid
  errors.add(:name, :unknown)
end