Class: DatabaseConsistency::Checkers::ColumnPresenceChecker::Report
- Inherits:
-
Report
- Object
- Report
- DatabaseConsistency::Checkers::ColumnPresenceChecker::Report
- Defined in:
- lib/database_consistency/checkers/validators_fraction_checkers/column_presence_checker.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#column_name ⇒ Object
readonly
Returns the value of attribute column_name.
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
Attributes inherited from Report
#checker_name, #column_or_attribute_name, #error_message, #error_slug, #status, #table_or_model_name
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(table_name:, column_name:, **args) ⇒ Report
constructor
A new instance of Report.
Constructor Details
#initialize(table_name:, column_name:, **args) ⇒ Report
Returns a new instance of Report.
12 13 14 15 16 |
# File 'lib/database_consistency/checkers/validators_fraction_checkers/column_presence_checker.rb', line 12 def initialize(table_name:, column_name:, **args) super(**args) @table_name = table_name @column_name = column_name end |
Instance Attribute Details
#column_name ⇒ Object (readonly)
Returns the value of attribute column_name.
10 11 12 |
# File 'lib/database_consistency/checkers/validators_fraction_checkers/column_presence_checker.rb', line 10 def column_name @column_name end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
10 11 12 |
# File 'lib/database_consistency/checkers/validators_fraction_checkers/column_presence_checker.rb', line 10 def table_name @table_name end |
Instance Method Details
#attributes ⇒ Object
18 19 20 |
# File 'lib/database_consistency/checkers/validators_fraction_checkers/column_presence_checker.rb', line 18 def attributes super.merge(table_name: table_name, column_name: column_name) end |