Class: TreeHaver::EditProjectionProviderMatrixEntry

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



477
478
479
# File 'lib/tree_haver/contracts.rb', line 477

def backend_ref
  @backend_ref
end

#formatting_preservationObject

Returns the value of attribute formatting_preservation

Returns:

  • (Object)

    the current value of formatting_preservation



477
478
479
# File 'lib/tree_haver/contracts.rb', line 477

def formatting_preservation
  @formatting_preservation
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



477
478
479
# File 'lib/tree_haver/contracts.rb', line 477

def language
  @language
end

#operationsObject

Returns the value of attribute operations

Returns:

  • (Object)

    the current value of operations



477
478
479
# File 'lib/tree_haver/contracts.rb', line 477

def operations
  @operations
end

#preserves_source_fragmentsObject

Returns the value of attribute preserves_source_fragments

Returns:

  • (Object)

    the current value of preserves_source_fragments



477
478
479
# File 'lib/tree_haver/contracts.rb', line 477

def preserves_source_fragments
  @preserves_source_fragments
end

#provider_idObject

Returns the value of attribute provider_id

Returns:

  • (Object)

    the current value of provider_id



477
478
479
# File 'lib/tree_haver/contracts.rb', line 477

def provider_id
  @provider_id
end

Instance Method Details

#to_hObject



486
487
488
489
490
491
492
493
494
495
# File 'lib/tree_haver/contracts.rb', line 486

def to_h
  {
    provider_id: provider_id,
    backend_ref: backend_ref.to_h,
    language: language,
    formatting_preservation: formatting_preservation,
    preserves_source_fragments: preserves_source_fragments,
    operations: (operations || []).map(&:to_h)
  }
end