Class: TreeHaver::BinaryMergeReport
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::BinaryMergeReport
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#checksum_updates ⇒ Object
Returns the value of attribute checksum_updates.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#format ⇒ Object
Returns the value of attribute format.
-
#matched_schema_paths ⇒ Object
Returns the value of attribute matched_schema_paths.
-
#nested_dispatches ⇒ Object
Returns the value of attribute nested_dispatches.
-
#preserved_ranges ⇒ Object
Returns the value of attribute preserved_ranges.
-
#rewritten_nodes ⇒ Object
Returns the value of attribute rewritten_nodes.
-
#schema ⇒ Object
Returns the value of attribute schema.
Instance Method Summary collapse
Instance Attribute Details
#checksum_updates ⇒ Object
Returns the value of attribute checksum_updates
235 236 237 |
# File 'lib/tree_haver/contracts.rb', line 235 def checksum_updates @checksum_updates end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
235 236 237 |
# File 'lib/tree_haver/contracts.rb', line 235 def diagnostics @diagnostics end |
#format ⇒ Object
Returns the value of attribute format
235 236 237 |
# File 'lib/tree_haver/contracts.rb', line 235 def format @format end |
#matched_schema_paths ⇒ Object
Returns the value of attribute matched_schema_paths
235 236 237 |
# File 'lib/tree_haver/contracts.rb', line 235 def matched_schema_paths @matched_schema_paths end |
#nested_dispatches ⇒ Object
Returns the value of attribute nested_dispatches
235 236 237 |
# File 'lib/tree_haver/contracts.rb', line 235 def nested_dispatches @nested_dispatches end |
#preserved_ranges ⇒ Object
Returns the value of attribute preserved_ranges
235 236 237 |
# File 'lib/tree_haver/contracts.rb', line 235 def preserved_ranges @preserved_ranges end |
#rewritten_nodes ⇒ Object
Returns the value of attribute rewritten_nodes
235 236 237 |
# File 'lib/tree_haver/contracts.rb', line 235 def rewritten_nodes @rewritten_nodes end |
#schema ⇒ Object
Returns the value of attribute schema
235 236 237 |
# File 'lib/tree_haver/contracts.rb', line 235 def schema @schema end |
Instance Method Details
#to_h ⇒ Object
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 |