Class: DatabaseConsistency::Report
- Inherits:
-
Object
- Object
- DatabaseConsistency::Report
- Defined in:
- lib/database_consistency/report.rb
Overview
:nodoc:
Direct Known Subclasses
Checkers::ColumnPresenceChecker::Report, Checkers::ForeignKeyChecker::Report, Checkers::ForeignKeyTypeChecker::Report, Checkers::NullConstraintChecker::Report, Checkers::RedundantIndexChecker::Report, Checkers::RedundantUniqueIndexChecker::Report
Instance Attribute Summary collapse
-
#checker_name ⇒ Object
readonly
Returns the value of attribute checker_name.
-
#column_or_attribute_name ⇒ Object
readonly
Returns the value of attribute column_or_attribute_name.
-
#error_message ⇒ Object
readonly
Returns the value of attribute error_message.
-
#error_slug ⇒ Object
readonly
Returns the value of attribute error_slug.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#table_or_model_name ⇒ Object
readonly
Returns the value of attribute table_or_model_name.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(checker_name:, table_or_model_name:, column_or_attribute_name:, status:, error_slug:, error_message:) ⇒ Report
constructor
rubocop:disable Metrics/ParameterLists.
Constructor Details
#initialize(checker_name:, table_or_model_name:, column_or_attribute_name:, status:, error_slug:, error_message:) ⇒ Report
rubocop:disable Metrics/ParameterLists
7 8 9 10 11 12 13 14 |
# File 'lib/database_consistency/report.rb', line 7 def initialize(checker_name:, table_or_model_name:, column_or_attribute_name:, status:, error_slug:, error_message:) # rubocop:disable Metrics/ParameterLists @checker_name = checker_name @table_or_model_name = table_or_model_name @column_or_attribute_name = column_or_attribute_name @status = status @error_slug = error_slug @error_message = end |
Instance Attribute Details
#checker_name ⇒ Object (readonly)
Returns the value of attribute checker_name.
5 6 7 |
# File 'lib/database_consistency/report.rb', line 5 def checker_name @checker_name end |
#column_or_attribute_name ⇒ Object (readonly)
Returns the value of attribute column_or_attribute_name.
5 6 7 |
# File 'lib/database_consistency/report.rb', line 5 def column_or_attribute_name @column_or_attribute_name end |
#error_message ⇒ Object (readonly)
Returns the value of attribute error_message.
5 6 7 |
# File 'lib/database_consistency/report.rb', line 5 def @error_message end |
#error_slug ⇒ Object (readonly)
Returns the value of attribute error_slug.
5 6 7 |
# File 'lib/database_consistency/report.rb', line 5 def error_slug @error_slug end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
5 6 7 |
# File 'lib/database_consistency/report.rb', line 5 def status @status end |
#table_or_model_name ⇒ Object (readonly)
Returns the value of attribute table_or_model_name.
5 6 7 |
# File 'lib/database_consistency/report.rb', line 5 def table_or_model_name @table_or_model_name end |
Instance Method Details
#attributes ⇒ Object
16 17 18 19 20 21 |
# File 'lib/database_consistency/report.rb', line 16 def attributes { error_slug: error_slug, error_message: } end |