Class: PartitionGardener::RunSummary

Inherits:
Data
  • Object
show all
Defined in:
lib/partition_gardener/run_metrics.rb

Constant Summary collapse

SCHEMA_VERSION =
"1.0"

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors

Returns:

  • (Object)

    the current value of errors



54
55
56
# File 'lib/partition_gardener/run_metrics.rb', line 54

def errors
  @errors
end

#tablesObject (readonly)

Returns the value of attribute tables

Returns:

  • (Object)

    the current value of tables



54
55
56
# File 'lib/partition_gardener/run_metrics.rb', line 54

def tables
  @tables
end

Instance Method Details

#to_hObject



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.message }
  }
end