Class: TreeHaver::EditProjectionProviderMatrixEntry
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::EditProjectionProviderMatrixEntry
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#backend_ref ⇒ Object
Returns the value of attribute backend_ref.
-
#formatting_preservation ⇒ Object
Returns the value of attribute formatting_preservation.
-
#language ⇒ Object
Returns the value of attribute language.
-
#operations ⇒ Object
Returns the value of attribute operations.
-
#preserves_source_fragments ⇒ Object
Returns the value of attribute preserves_source_fragments.
-
#provider_id ⇒ Object
Returns the value of attribute provider_id.
Instance Method Summary collapse
Instance Attribute Details
#backend_ref ⇒ Object
Returns the value of attribute backend_ref
477 478 479 |
# File 'lib/tree_haver/contracts.rb', line 477 def backend_ref @backend_ref end |
#formatting_preservation ⇒ Object
Returns the value of attribute formatting_preservation
477 478 479 |
# File 'lib/tree_haver/contracts.rb', line 477 def formatting_preservation @formatting_preservation end |
#language ⇒ Object
Returns the value of attribute language
477 478 479 |
# File 'lib/tree_haver/contracts.rb', line 477 def language @language end |
#operations ⇒ Object
Returns the value of attribute operations
477 478 479 |
# File 'lib/tree_haver/contracts.rb', line 477 def operations @operations end |
#preserves_source_fragments ⇒ Object
Returns the value of attribute preserves_source_fragments
477 478 479 |
# File 'lib/tree_haver/contracts.rb', line 477 def preserves_source_fragments @preserves_source_fragments end |
#provider_id ⇒ Object
Returns the value of attribute provider_id
477 478 479 |
# File 'lib/tree_haver/contracts.rb', line 477 def provider_id @provider_id end |
Instance Method Details
#to_h ⇒ Object
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 |