Class: TreeHaver::BinaryMergeReport

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checksum_updatesObject

Returns the value of attribute checksum_updates

Returns:

  • (Object)

    the current value of checksum_updates



235
236
237
# File 'lib/tree_haver/contracts.rb', line 235

def checksum_updates
  @checksum_updates
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



235
236
237
# File 'lib/tree_haver/contracts.rb', line 235

def diagnostics
  @diagnostics
end

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



235
236
237
# File 'lib/tree_haver/contracts.rb', line 235

def format
  @format
end

#matched_schema_pathsObject

Returns the value of attribute matched_schema_paths

Returns:

  • (Object)

    the current value of matched_schema_paths



235
236
237
# File 'lib/tree_haver/contracts.rb', line 235

def matched_schema_paths
  @matched_schema_paths
end

#nested_dispatchesObject

Returns the value of attribute nested_dispatches

Returns:

  • (Object)

    the current value of nested_dispatches



235
236
237
# File 'lib/tree_haver/contracts.rb', line 235

def nested_dispatches
  @nested_dispatches
end

#preserved_rangesObject

Returns the value of attribute preserved_ranges

Returns:

  • (Object)

    the current value of preserved_ranges



235
236
237
# File 'lib/tree_haver/contracts.rb', line 235

def preserved_ranges
  @preserved_ranges
end

#rewritten_nodesObject

Returns the value of attribute rewritten_nodes

Returns:

  • (Object)

    the current value of rewritten_nodes



235
236
237
# File 'lib/tree_haver/contracts.rb', line 235

def rewritten_nodes
  @rewritten_nodes
end

#schemaObject

Returns the value of attribute schema

Returns:

  • (Object)

    the current value of schema



235
236
237
# File 'lib/tree_haver/contracts.rb', line 235

def schema
  @schema
end

Instance Method Details

#to_hObject



236
237
238
239
240
241
242
243
244
245
246
247
# File 'lib/tree_haver/contracts.rb', line 236

def to_h
  {
    format: format,
    schema: schema,
    matched_schema_paths: deep_dup(matched_schema_paths || []),
    preserved_ranges: (preserved_ranges || []).map(&:to_h),
    rewritten_nodes: deep_dup(rewritten_nodes || []),
    checksum_updates: deep_dup(checksum_updates || []),
    nested_dispatches: (nested_dispatches || []).map(&:to_h),
    diagnostics: (diagnostics || []).map(&:to_h)
  }
end