Class: DbValidator::Configuration
- Inherits:
-
Object
- Object
- DbValidator::Configuration
- Defined in:
- lib/db_validator/configuration.rb
Instance Attribute Summary collapse
-
#batch_size ⇒ Object
Returns the value of attribute batch_size.
-
#ignored_attributes ⇒ Object
Returns the value of attribute ignored_attributes.
-
#ignored_models ⇒ Object
Returns the value of attribute ignored_models.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#only_models ⇒ Object
Returns the value of attribute only_models.
-
#report_format ⇒ Object
Returns the value of attribute report_format.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 13 14 |
# File 'lib/db_validator/configuration.rb', line 7 def initialize @only_models = [] @ignored_models = [] @ignored_attributes = {} @batch_size = 1000 @report_format = :text @limit = nil end |
Instance Attribute Details
#batch_size ⇒ Object
Returns the value of attribute batch_size.
5 6 7 |
# File 'lib/db_validator/configuration.rb', line 5 def batch_size @batch_size end |
#ignored_attributes ⇒ Object
Returns the value of attribute ignored_attributes.
5 6 7 |
# File 'lib/db_validator/configuration.rb', line 5 def ignored_attributes @ignored_attributes end |
#ignored_models ⇒ Object
Returns the value of attribute ignored_models.
5 6 7 |
# File 'lib/db_validator/configuration.rb', line 5 def ignored_models @ignored_models end |
#limit ⇒ Object
Returns the value of attribute limit.
5 6 7 |
# File 'lib/db_validator/configuration.rb', line 5 def limit @limit end |
#only_models ⇒ Object
Returns the value of attribute only_models.
5 6 7 |
# File 'lib/db_validator/configuration.rb', line 5 def only_models @only_models end |
#report_format ⇒ Object
Returns the value of attribute report_format.
5 6 7 |
# File 'lib/db_validator/configuration.rb', line 5 def report_format @report_format end |