Class: MetasploitDataModels::Search::Operator::IPAddress

Inherits:
Metasploit::Model::Search::Operator::Single
  • Object
show all
Defined in:
app/models/metasploit_data_models/search/operator/ip_address.rb

Overview

Operator for inet columns in a PostgreSQL database, which operates on formatted values using MetasploitDataModels::Search::Operation::IPAddress.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributeSymbol Also known as: name

The attribute on Metasploit::Model::Search::Operator::Base#klass that is searchable.

Returns:

  • (Symbol)

    the attribute name


12
13
14
# File 'app/models/metasploit_data_models/search/operator/ip_address.rb', line 12

def attribute
  @attribute
end

Instance Method Details

#operation_class_nameString

The class used for Metasploit::Model::Search::Operator::Single#operate_on.

Returns:

  • (String)

    'MetasploitDataModels::Search::Operation::IPAddress'


30
31
32
# File 'app/models/metasploit_data_models/search/operator/ip_address.rb', line 30

def operation_class_name
  @operation_class_name ||= 'MetasploitDataModels::Search::Operation::IPAddress'
end