Class: Dbchecker::Checker

Inherits:
Object
  • Object
show all
Extended by:
DSL
Defined in:
lib/dbchecker/base.rb,
lib/dbchecker/checker.rb

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from DSL

check_duplicates, check_equal, check_negatives, check_nil, check_references, check_zero, log

Class Attribute Details

.tableObject

Returns the value of attribute table.



6
7
8
# File 'lib/dbchecker/base.rb', line 6

def table
  @table
end

Class Method Details

.model(klass) ⇒ Object



9
10
11
# File 'lib/dbchecker/base.rb', line 9

def self.model(klass)
  self.table = klass.to_s.classify.constantize
end