Sha256: c73d4de0c1b8535bf88cf4f4eb9342c1ac7db1d9575ceacfe368a4e881b9043f

Contents?: true

Size: 897 Bytes

Versions: 119

Compression:

Stored size: 897 Bytes

Contents

# Operator for `inet` columns in a PostgreSQL database, which operates on formatted values using
# {MetasploitDataModels::Search::Operation::IPAddress}.
class MetasploitDataModels::Search::Operator::IPAddress < Metasploit::Model::Search::Operator::Single
  #
  # Attributes
  #

  # @!attribute [r] attribute
  #   The attribute on `Metasploit::Model::Search::Operator::Base#klass` that is searchable.
  #
  #   @return [Symbol] the attribute name
  attr_accessor :attribute

  #
  # Validations
  #

  validates :attribute,
            presence: true

  #
  # Instance Methods
  #

  alias_method :name, :attribute

  # The class used for `Metasploit::Model::Search::Operator::Single#operate_on`.
  #
  # @return [String] `'MetasploitDataModels::Search::Operation::IPAddress'`
  def operation_class_name
    @operation_class_name ||= 'MetasploitDataModels::Search::Operation::IPAddress'
  end
end

Version data entries

119 entries across 119 versions & 2 rubygems

Version Path
wg-metasploit_data_models-4.1.4.02 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-6.0.5 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-6.0.4 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-6.0.3 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-6.0.2 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-6.0.1 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-6.0.0 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-5.0.6 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-5.0.5 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-5.0.4 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-5.0.3 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-5.0.2 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-5.0.1 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-5.0.0 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-4.1.4 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-4.1.3 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-4.1.2 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-4.1.1 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-4.1.0 app/models/metasploit_data_models/search/operator/ip_address.rb
metasploit_data_models-4.0.2 app/models/metasploit_data_models/search/operator/ip_address.rb