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



839
840
841
# File 'lib/tree_haver/contracts.rb', line 839

def checksum_updates
  @checksum_updates
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



839
840
841
# File 'lib/tree_haver/contracts.rb', line 839

def diagnostics
  @diagnostics
end

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



839
840
841
# File 'lib/tree_haver/contracts.rb', line 839

def format
  @format
end

#matched_schema_pathsObject

Returns the value of attribute matched_schema_paths

Returns:

  • (Object)

    the current value of matched_schema_paths



839
840
841
# File 'lib/tree_haver/contracts.rb', line 839

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



839
840
841
# File 'lib/tree_haver/contracts.rb', line 839

def nested_dispatches
  @nested_dispatches
end

#preserved_rangesObject

Returns the value of attribute preserved_ranges

Returns:

  • (Object)

    the current value of preserved_ranges



839
840
841
# File 'lib/tree_haver/contracts.rb', line 839

def preserved_ranges
  @preserved_ranges
end

#rewritten_nodesObject

Returns the value of attribute rewritten_nodes

Returns:

  • (Object)

    the current value of rewritten_nodes



839
840
841
# File 'lib/tree_haver/contracts.rb', line 839

def rewritten_nodes
  @rewritten_nodes
end

#schemaObject

Returns the value of attribute schema

Returns:

  • (Object)

    the current value of schema



839
840
841
# File 'lib/tree_haver/contracts.rb', line 839

def schema
  @schema
end

Instance Method Details

#to_hObject



841
842
843
844
845
846
847
848
849
850
851
852
# File 'lib/tree_haver/contracts.rb', line 841

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