Sha256: d982111c0cd2585864fea3c5b2ff09bbfe61ad92851bef1170bfd44b53a9b62a

Contents?: true

Size: 625 Bytes

Versions: 115

Compression:

Stored size: 625 Bytes

Contents

# Extracts the `Arel::Attribute` objects from `Metasploit::Model::Search::Operator::Base` subclasses.
class MetasploitDataModels::Search::Visitor::Attribute
  include Metasploit::Model::Visitation::Visit

  visit 'Metasploit::Model::Search::Operator::Association' do |operator|
    visit operator.source_operator
  end

  visit 'Metasploit::Model::Search::Operator::Attribute',
        'MetasploitDataModels::Search::Operator::IPAddress',
        'MetasploitDataModels::Search::Operator::Port::List' do |operator|
    table = operator.klass.arel_table
    table[operator.attribute]
  end

  Metasploit::Concern.run(self)
end

Version data entries

115 entries across 115 versions & 2 rubygems

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