Class: SnipSnip::Reporter::Result
- Inherits:
-
Struct
- Object
- Struct
- SnipSnip::Reporter::Result
- Defined in:
- lib/snip_snip/reporter.rb
Overview
Represents a result that has unused columns.
Instance Attribute Summary collapse
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#primary_key ⇒ Object
Returns the value of attribute primary_key.
-
#unused ⇒ Object
Returns the value of attribute unused.
Instance Method Summary collapse
-
#report ⇒ Object
A string representing the unused columns for the given record.
Instance Attribute Details
#class_name ⇒ Object
Returns the value of attribute class_name
7 8 9 |
# File 'lib/snip_snip/reporter.rb', line 7 def class_name @class_name end |
#primary_key ⇒ Object
Returns the value of attribute primary_key
7 8 9 |
# File 'lib/snip_snip/reporter.rb', line 7 def primary_key @primary_key end |
#unused ⇒ Object
Returns the value of attribute unused
7 8 9 |
# File 'lib/snip_snip/reporter.rb', line 7 def unused @unused end |
Instance Method Details
#report ⇒ Object
A string representing the unused columns for the given record.
10 11 12 |
# File 'lib/snip_snip/reporter.rb', line 10 def report @report ||= "#{class_name} #{primary_key}: #{unused.sort.join(', ')}" end |