Sha256: 6b0468e8de28638a49f84de84edae3d209152c4e1d361de47e080611cc54c3da

Contents?: true

Size: 924 Bytes

Versions: 60

Compression:

Stored size: 924 Bytes

Contents

# Operator used when the formatted operator name does not match a class's operators.
class Metasploit::Model::Search::Operator::Null < Metasploit::Model::Search::Operator::Single
  #
  # Attributes
  #

  # @!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]
  attr_accessor :name

  #
  # Validations
  #

  validate :name_invalid

  # Null operators do not have a type since the attribute is unknown.
  #
  # @return [nil]
  def type
    nil
  end

  protected

  # Null operation Class.
  #
  # @return [Class] {Metasploit::Model::Search::Operation::Null}
  def operation_class
    Metasploit::Model::Search::Operation::Null
  end

  private

  # Always records an error that name is not an operator name
  #
  # @return [void]
  def name_invalid
    errors.add(:name, :unknown)
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
metasploit-model-0.27.4 app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.27.4-java app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.27.0.pre.dep.pre.railties app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.26.1-java app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.26.1 app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.7 app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.7-java app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.6 app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.6-java app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.3 app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.3-java app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.2 app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.2-java app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.1 app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.1-java app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups-java app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.24.1-java app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.24.1 app/models/metasploit/model/search/operator/null.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 app/models/metasploit/model/search/operator/null.rb