Class: DatabaseConsistency::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/database_consistency/report.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = 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
  @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