Class: TreeHaver::NativeParserProvider

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#familyObject

Returns the value of attribute family

Returns:

  • (Object)

    the current value of family



136
137
138
# File 'lib/tree_haver/contracts.rb', line 136

def family
  @family
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



136
137
138
# File 'lib/tree_haver/contracts.rb', line 136

def id
  @id
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



136
137
138
# File 'lib/tree_haver/contracts.rb', line 136

def language
  @language
end

#metadata_policyObject

Returns the value of attribute metadata_policy

Returns:

  • (Object)

    the current value of metadata_policy



136
137
138
# File 'lib/tree_haver/contracts.rb', line 136

def 
  @metadata_policy
end

#native_tree_visibilityObject

Returns the value of attribute native_tree_visibility

Returns:

  • (Object)

    the current value of native_tree_visibility



136
137
138
# File 'lib/tree_haver/contracts.rb', line 136

def native_tree_visibility
  @native_tree_visibility
end

#operationsObject

Returns the value of attribute operations

Returns:

  • (Object)

    the current value of operations



136
137
138
# File 'lib/tree_haver/contracts.rb', line 136

def operations
  @operations
end

#retains_native_treeObject

Returns the value of attribute retains_native_tree

Returns:

  • (Object)

    the current value of 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_hObject



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