Sha256: 5d3a5332c83b3c3b1fae4f9f63115271b0788a2d545c72b407f14e63fe73126f

Contents?: true

Size: 495 Bytes

Versions: 122

Compression:

Stored size: 495 Bytes

Contents

# Allows `MetasploitDataModels::Search::Visitor::Where` to visit {Metasploit::Credential::Search::Operation::Type} so
# that the operation can be transformed into a an equality query.
module MetasploitDataModels::Search::Visitor::Where::MetasploitCredential
  extend ActiveSupport::Concern

  included do
    visit 'Metasploit::Credential::Search::Operation::Type' do |operation|
      attribute = attribute_visitor.visit operation.operator

      attribute.eq(operation.value)
    end
  end
end

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
metasploit-credential-2.0.7 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-2.0.6 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-2.0.5 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-2.0.4 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-2.0.3 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-2.0.2 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-2.0.1 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-2.0.0 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-1.1.0 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-1.0.1 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-0.14.8 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-1.0.0 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-0.14.7 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-0.14.6 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0c app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0b app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-1.0.0.pre.rails.pre.4.0 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-0.14.5 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-0.14.4 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb
metasploit-credential-0.14.3 app/concerns/metasploit_data_models/search/visitor/where/metasploit_credential.rb