Class: Ast::Merge::PairwiseNodeMatch

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#class_idObject

Returns the value of attribute class_id

Returns:

  • (Object)

    the current value of class_id



214
215
216
# File 'lib/ast/merge.rb', line 214

def class_id
  @class_id
end

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



214
215
216
# File 'lib/ast/merge.rb', line 214

def confidence
  @confidence
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



214
215
216
# File 'lib/ast/merge.rb', line 214

def diagnostics
  @diagnostics
end

#from_node_idObject

Returns the value of attribute from_node_id

Returns:

  • (Object)

    the current value of from_node_id



214
215
216
# File 'lib/ast/merge.rb', line 214

def from_node_id
  @from_node_id
end

#strategyObject

Returns the value of attribute strategy

Returns:

  • (Object)

    the current value of strategy



214
215
216
# File 'lib/ast/merge.rb', line 214

def strategy
  @strategy
end

#to_node_idObject

Returns the value of attribute to_node_id

Returns:

  • (Object)

    the current value of to_node_id



214
215
216
# File 'lib/ast/merge.rb', line 214

def to_node_id
  @to_node_id
end

Instance Method Details

#to_hObject



216
217
218
219
220
221
222
223
224
225
# File 'lib/ast/merge.rb', line 216

def to_h
  {
    from_node_id: from_node_id,
    to_node_id: to_node_id,
    class_id: class_id,
    strategy: strategy,
    confidence: confidence,
    diagnostics: diagnostics || []
  }
end