Sha256: 6f047538dca503954b8dea1edc74d238d2132a9d0819cfffc870780bc490276f

Contents?: true

Size: 930 Bytes

Versions: 8

Compression:

Stored size: 930 Bytes

Contents

require 'metasploit/model/translation'

module Metasploit
  module Model
    module Module
      # Joins {Metasploit::Model::Module::Instance} and {Metasploit::Model::Platform.}
      module Platform
        extend ActiveModel::Naming
        extend ActiveSupport::Concern

        include Metasploit::Model::Translation

        included do
          include ActiveModel::Validations

          #
          # Validations
          #

          validates :module_instance, :presence => true
          validates :platform, :presence => true
        end

        #
        # Associations
        #

        # @!attribute [rw] module_instance
        #   Module that supports {#platform}.
        #
        #   @return [Metasploit::Model::Module::Instance]

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
metasploit-model-0.27.3 lib/metasploit/model/module/platform.rb
metasploit-model-0.27.3-java lib/metasploit/model/module/platform.rb
metasploit-model-0.27.2 lib/metasploit/model/module/platform.rb
metasploit-model-0.27.2-java lib/metasploit/model/module/platform.rb
metasploit-model-0.27.1 lib/metasploit/model/module/platform.rb
metasploit-model-0.27.1-java lib/metasploit/model/module/platform.rb
metasploit-model-0.27.0 lib/metasploit/model/module/platform.rb
metasploit-model-0.27.0-java lib/metasploit/model/module/platform.rb