Class: DatabaseConsistency::Checkers::ColumnPresenceChecker::Report

Inherits:
Report
  • Object
show all
Defined in:
lib/database_consistency/checkers/validators_fraction_checkers/column_presence_checker.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes inherited from Report

#checker_name, #column_or_attribute_name, #error_message, #error_slug, #status, #table_or_model_name

Instance Method Summary collapse

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_nameObject (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_nameObject (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

#attributesObject



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