Class: FIDIUS::PreludeDB::Analyzer
- Inherits:
-
Connection
- Object
- ActiveRecord::Base
- Connection
- FIDIUS::PreludeDB::Analyzer
- Defined in:
- lib/evasion-db/idmef-fetchers/prelude-db/lib/models/analyzer.rb
Overview
Wrapper for Prelude_Analyzer table
Class Method Summary collapse
- .column(name, sql_type = nil, default = nil, null = true) ⇒ Object
- .columns ⇒ Object
- .table_name ⇒ Object
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 |
.columns ⇒ Object
5 |
# File 'lib/evasion-db/idmef-fetchers/prelude-db/lib/models/analyzer.rb', line 5 def self.columns() @columns ||= []; end |
.table_name ⇒ Object
13 14 15 |
# File 'lib/evasion-db/idmef-fetchers/prelude-db/lib/models/analyzer.rb', line 13 def self.table_name "Prelude_Analyzer" end |