Class: DatabaseConsistency::Checkers::RedundantIndexChecker::Report

Inherits:
Report
  • Object
show all
Defined in:
lib/database_consistency/checkers/index_checkers/redundant_index_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(index_name:, **args) ⇒ Report

Returns a new instance of Report.



10
11
12
13
# File 'lib/database_consistency/checkers/index_checkers/redundant_index_checker.rb', line 10

def initialize(index_name:, **args)
  super(**args)
  @index_name = index_name
end

Instance Attribute Details

#index_nameObject (readonly)

Returns the value of attribute index_name.



8
9
10
# File 'lib/database_consistency/checkers/index_checkers/redundant_index_checker.rb', line 8

def index_name
  @index_name
end

Instance Method Details

#attributesObject



15
16
17
# File 'lib/database_consistency/checkers/index_checkers/redundant_index_checker.rb', line 15

def attributes
  super.merge(index_name: index_name)
end