Class: TreeHaver::NativeParserProvider
- Inherits:
-
Struct
- Object
- Struct
- TreeHaver::NativeParserProvider
- Defined in:
- lib/tree_haver/contracts.rb
Instance Attribute Summary collapse
-
#family ⇒ Object
Returns the value of attribute family.
-
#id ⇒ Object
Returns the value of attribute id.
-
#language ⇒ Object
Returns the value of attribute language.
-
#metadata_policy ⇒ Object
Returns the value of attribute metadata_policy.
-
#native_tree_visibility ⇒ Object
Returns the value of attribute native_tree_visibility.
-
#operations ⇒ Object
Returns the value of attribute operations.
-
#retains_native_tree ⇒ Object
Returns the value of attribute retains_native_tree.
Instance Method Summary collapse
Instance Attribute Details
#family ⇒ Object
Returns the value of attribute family
136 137 138 |
# File 'lib/tree_haver/contracts.rb', line 136 def family @family end |
#id ⇒ Object
Returns the value of attribute id
136 137 138 |
# File 'lib/tree_haver/contracts.rb', line 136 def id @id end |
#language ⇒ Object
Returns the value of attribute language
136 137 138 |
# File 'lib/tree_haver/contracts.rb', line 136 def language @language end |
#metadata_policy ⇒ Object
Returns the value of attribute metadata_policy
136 137 138 |
# File 'lib/tree_haver/contracts.rb', line 136 def @metadata_policy end |
#native_tree_visibility ⇒ Object
Returns the value of attribute native_tree_visibility
136 137 138 |
# File 'lib/tree_haver/contracts.rb', line 136 def native_tree_visibility @native_tree_visibility end |
#operations ⇒ Object
Returns the value of attribute operations
136 137 138 |
# File 'lib/tree_haver/contracts.rb', line 136 def operations @operations end |
#retains_native_tree ⇒ Object
Returns the value of attribute retains_native_tree
136 137 138 |
# File 'lib/tree_haver/contracts.rb', line 136 def retains_native_tree @retains_native_tree end |
Instance Method Details
#to_h ⇒ Object
138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/tree_haver/contracts.rb', line 138 def to_h { id: id, family: family, language: language, operations: operations || [], retains_native_tree: retains_native_tree, native_tree_visibility: native_tree_visibility, metadata_policy: } end |