Class: FIDIUS::PreludeDB::Analyzer

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

Overview

Wrapper for Prelude_Analyzer 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/analyzer.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/analyzer.rb', line 5

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

.table_nameObject



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

def self.table_name
  "Prelude_Analyzer"
end