Sha256: 97e3873a4034557958ea517dcc1934e8578d099c3b42644bde368c0906137b13

Contents?: true

Size: 1.01 KB

Versions: 18

Compression:

Stored size: 1.01 KB

Contents

module Metasploit
  module Model
    module Module
      module Target
        # Model that joins {Metasploit::Model::Platform} and {Metasploit::Model::Module::Target}.
        module Platform
          extend ActiveModel::Naming
          extend ActiveSupport::Concern

          include Metasploit::Model::Translation

          included do
            include ActiveModel::Validations

            #
            # Validations
            #

            validates :module_target,
                      presence: true
            validates :platform,
                      presence: true
          end

          #
          # Associations
          #

          # @!attribute [rw] module_target
          #   The module target that supports {#platform}.
          #
          #   @return [Metasploit::Model::Module::Target]

          # @!attribute [rw] platform
          #   The platform supported by the {#module_target}.
          #
          #   @return [Metasploit::Model::Platform]
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
metasploit-model-0.27.0.pre.dep.pre.railties lib/metasploit/model/module/target/platform.rb
metasploit-model-0.26.1-java lib/metasploit/model/module/target/platform.rb
metasploit-model-0.26.1 lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.7 lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.7-java lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.6 lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.6-java lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.3 lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.3-java lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.2 lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.2-java lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.1 lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.1-java lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups-java lib/metasploit/model/module/target/platform.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups lib/metasploit/model/module/target/platform.rb
metasploit-model-0.24.1-java lib/metasploit/model/module/target/platform.rb
metasploit-model-0.24.1 lib/metasploit/model/module/target/platform.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 lib/metasploit/model/module/target/platform.rb