Class: Dbchecker::Checker
- Inherits:
-
Object
- Object
- Dbchecker::Checker
- Extended by:
- DSL
- Defined in:
- lib/dbchecker/base.rb,
lib/dbchecker/checker.rb
Class Attribute Summary collapse
-
.table ⇒ Object
Returns the value of attribute table.
Class Method Summary collapse
Methods included from DSL
check_duplicates, check_equal, check_negatives, check_nil, check_references, check_zero, log
Class Attribute Details
.table ⇒ Object
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 |