Class: TreeHaver::EditProjectionSupport

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#backend_refObject

Returns the value of attribute backend_ref

Returns:

  • (Object)

    the current value of backend_ref



315
316
317
# File 'lib/tree_haver/contracts.rb', line 315

def backend_ref
  @backend_ref
end

#correlation_keysObject

Returns the value of attribute correlation_keys

Returns:

  • (Object)

    the current value of correlation_keys



315
316
317
# File 'lib/tree_haver/contracts.rb', line 315

def correlation_keys
  @correlation_keys
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



315
316
317
# File 'lib/tree_haver/contracts.rb', line 315

def diagnostics
  @diagnostics
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



315
316
317
# File 'lib/tree_haver/contracts.rb', line 315

def language
  @language
end

#native_edit_targetObject

Returns the value of attribute native_edit_target

Returns:

  • (Object)

    the current value of native_edit_target



315
316
317
# File 'lib/tree_haver/contracts.rb', line 315

def native_edit_target
  @native_edit_target
end

#normalized_edit_targetObject

Returns the value of attribute normalized_edit_target

Returns:

  • (Object)

    the current value of normalized_edit_target



315
316
317
# File 'lib/tree_haver/contracts.rb', line 315

def normalized_edit_target
  @normalized_edit_target
end

#preserves_source_fragmentsObject

Returns the value of attribute preserves_source_fragments

Returns:

  • (Object)

    the current value of preserves_source_fragments



315
316
317
# File 'lib/tree_haver/contracts.rb', line 315

def preserves_source_fragments
  @preserves_source_fragments
end

#required_node_fieldsObject

Returns the value of attribute required_node_fields

Returns:

  • (Object)

    the current value of required_node_fields



315
316
317
# File 'lib/tree_haver/contracts.rb', line 315

def required_node_fields
  @required_node_fields
end

#supported_operationsObject

Returns the value of attribute supported_operations

Returns:

  • (Object)

    the current value of supported_operations



315
316
317
# File 'lib/tree_haver/contracts.rb', line 315

def supported_operations
  @supported_operations
end

#supports_edit_projectionObject

Returns the value of attribute supports_edit_projection

Returns:

  • (Object)

    the current value of supports_edit_projection



315
316
317
# File 'lib/tree_haver/contracts.rb', line 315

def supports_edit_projection
  @supports_edit_projection
end

#unsupported_reasonObject

Returns the value of attribute unsupported_reason

Returns:

  • (Object)

    the current value of unsupported_reason



315
316
317
# File 'lib/tree_haver/contracts.rb', line 315

def unsupported_reason
  @unsupported_reason
end

Instance Method Details

#to_hObject



329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
# File 'lib/tree_haver/contracts.rb', line 329

def to_h
  {
    backend_ref: backend_ref.to_h,
    language: language,
    supports_edit_projection: supports_edit_projection,
    native_edit_target: native_edit_target,
    normalized_edit_target: normalized_edit_target,
    supported_operations: supported_operations || [],
    required_node_fields: required_node_fields || [],
    correlation_keys: correlation_keys || [],
    preserves_source_fragments: preserves_source_fragments,
    unsupported_reason: unsupported_reason,
    diagnostics: diagnostics || []
  }
end