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



192
193
194
# File 'lib/ast/merge.rb', line 192

def class_id
  @class_id
end

#confidenceObject

Returns the value of attribute confidence

Returns:

  • (Object)

    the current value of confidence



192
193
194
# File 'lib/ast/merge.rb', line 192

def confidence
  @confidence
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



192
193
194
# File 'lib/ast/merge.rb', line 192

def diagnostics
  @diagnostics
end

#from_node_idObject

Returns the value of attribute from_node_id

Returns:

  • (Object)

    the current value of from_node_id



192
193
194
# File 'lib/ast/merge.rb', line 192

def from_node_id
  @from_node_id
end

#strategyObject

Returns the value of attribute strategy

Returns:

  • (Object)

    the current value of strategy



192
193
194
# File 'lib/ast/merge.rb', line 192

def strategy
  @strategy
end

#to_node_idObject

Returns the value of attribute to_node_id

Returns:

  • (Object)

    the current value of to_node_id



192
193
194
# File 'lib/ast/merge.rb', line 192

def to_node_id
  @to_node_id
end

Instance Method Details

#to_hObject



194
195
196
197
198
199
200
201
202
203
# File 'lib/ast/merge.rb', line 194

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