Class: FIDIUS::PreludeDB::Impact

Inherits:
Connection
  • Object
show all
Defined in:
lib/evasion-db/idmef-fetchers/prelude-db/lib/models/impact.rb

Overview

Wrapper for Prelude_Impact table

Class Method Summary collapse

Class Method Details

.column(name, sql_type = nil, default = nil, null = true) ⇒ Object



6
7
8
# File 'lib/evasion-db/idmef-fetchers/prelude-db/lib/models/impact.rb', line 6

def self.column(name, sql_type=nil, default=nil,null=true)
  columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s,default,sql_type.to_s,null)
end

.columnsObject



5
# File 'lib/evasion-db/idmef-fetchers/prelude-db/lib/models/impact.rb', line 5

def self.columns() @columns ||= []; end

.table_nameObject



14
15
16
# File 'lib/evasion-db/idmef-fetchers/prelude-db/lib/models/impact.rb', line 14

def self.table_name
  "Prelude_Impact"
end