Module: ScanDB::Model

Includes:
DataMapper::Types
Included in:
Host, HostName, OS, OSGuess, Port, ScannedPort, Service
Defined in:
lib/scandb/model.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



30
31
32
33
34
35
36
37
# File 'lib/scandb/model.rb', line 30

def self.included(base)
  base.module_eval do
    include DataMapper::Resource
    include DataMapper::AutoMigrations

    property :id, Serial
  end
end