Class: Metasploit::Model::Search::Operator::Association

Inherits:
Single
  • Object
show all
Defined in:
app/models/metasploit/model/search/operator/association.rb

Overview

A search operator declared with search_association.

Constant Summary

Constants inherited from Single

Single::MODULE_SEPARATOR, Single::OPERATION_NAMESPACE_NAME

Instance Attribute Summary collapse

Attributes inherited from Base

#klass

Instance Method Summary collapse

Methods inherited from Single

constant_name, #operate_on, #operation_class, #operation_class_name, #type

Methods included from Help

#help

Methods inherited from Base

#initialize, #valid!

Constructor Details

This class inherits a constructor from Metasploit::Model::Base

Instance Attribute Details

#associationSymbol

The association on which Metasploit::Model::Search::Operator::Attribute#attribute is declared searchable.

Returns:

  • (Symbol)

    association on klass.



12
13
14
# File 'app/models/metasploit/model/search/operator/association.rb', line 12

def association
  @association
end

#attribute_operatorMetasploit::Model::Search::Operator::Attribute

The operator as declared on the #association class.



18
19
20
# File 'app/models/metasploit/model/search/operator/association.rb', line 18

def attribute_operator
  @attribute_operator
end

Instance Method Details

#nameString

The name of this operator.

Returns:

  • (String)

    .



40
41
42
# File 'app/models/metasploit/model/search/operator/association.rb', line 40

def name
  @name ||= "#{association}.#{attribute}".to_sym
end