Class: PartitionGardener::RunSummary
- Inherits:
-
Data
- Object
- Data
- PartitionGardener::RunSummary
- Defined in:
- lib/partition_gardener/run_metrics.rb
Constant Summary collapse
- SCHEMA_VERSION =
"1.0"
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#tables ⇒ Object
readonly
Returns the value of attribute tables.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors
54 55 56 |
# File 'lib/partition_gardener/run_metrics.rb', line 54 def errors @errors end |
#tables ⇒ Object (readonly)
Returns the value of attribute tables
54 55 56 |
# File 'lib/partition_gardener/run_metrics.rb', line 54 def tables @tables end |
Instance Method Details
#to_h ⇒ Object
57 58 59 60 61 62 63 |
# File 'lib/partition_gardener/run_metrics.rb', line 57 def to_h { schema_version: SCHEMA_VERSION, tables: tables.map(&:to_h), errors: errors.map { |error| error. } } end |