Sha256: 53a045a7cc511fad3fb02f3da80edbc836801d14609817fb03c94e1d7e4c8319

Contents?: true

Size: 829 Bytes

Versions: 15

Compression:

Stored size: 829 Bytes

Contents

# @abstract Declare search operators using {Metasploit::Model::Search::ClassMethods#search_attribute} and include
#   operators from associations with {Metasploit::Model::Search::ClassMethods#search_association}.
#
# A search operator.
class Metasploit::Model::Search::Operator::Base < Metasploit::Model::Base
  include ActiveModel::Validations
  include Metasploit::Model::Search::Operator::Help

  #
  # Attributes
  #

  # @!attribute [rw] klass
  #   The class on which this operator is usable.
  #
  #   @return [Class]
  attr_accessor :klass

  #
  # Validations
  #

  validates :klass, :presence => true

  # @abstract subclass and derive operator name from attributes of subclass.
  #
  # Name of this operator.
  #
  # @return [String]
  # @raise [NotImplementedError]
  def name
    raise NotImplementedError
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
metasploit-model-0.25.7 app/models/metasploit/model/search/operator/base.rb
metasploit-model-0.25.7-java app/models/metasploit/model/search/operator/base.rb
metasploit-model-0.25.6 app/models/metasploit/model/search/operator/base.rb
metasploit-model-0.25.6-java app/models/metasploit/model/search/operator/base.rb
metasploit-model-0.25.3 app/models/metasploit/model/search/operator/base.rb
metasploit-model-0.25.3-java app/models/metasploit/model/search/operator/base.rb
metasploit-model-0.25.2 app/models/metasploit/model/search/operator/base.rb
metasploit-model-0.25.2-java app/models/metasploit/model/search/operator/base.rb
metasploit-model-0.25.1 app/models/metasploit/model/search/operator/base.rb
metasploit-model-0.25.1-java app/models/metasploit/model/search/operator/base.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/base.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/base.rb
metasploit-model-0.24.1-java app/models/metasploit/model/search/operator/base.rb
metasploit-model-0.24.1 app/models/metasploit/model/search/operator/base.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 app/models/metasploit/model/search/operator/base.rb