Class: Ast::Merge::ClassMappingNodeClass

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



242
243
244
# File 'lib/ast/merge.rb', line 242

def class_id
  @class_id
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



242
243
244
# File 'lib/ast/merge.rb', line 242

def diagnostics
  @diagnostics
end

#matching_idsObject

Returns the value of attribute matching_ids

Returns:

  • (Object)

    the current value of matching_ids



242
243
244
# File 'lib/ast/merge.rb', line 242

def matching_ids
  @matching_ids
end

#node_idsObject

Returns the value of attribute node_ids

Returns:

  • (Object)

    the current value of node_ids



242
243
244
# File 'lib/ast/merge.rb', line 242

def node_ids
  @node_ids
end

#signatureObject

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



242
243
244
# File 'lib/ast/merge.rb', line 242

def signature
  @signature
end

Instance Method Details

#to_hObject



244
245
246
247
248
249
250
251
252
# File 'lib/ast/merge.rb', line 244

def to_h
  {
    class_id: class_id,
    signature: signature,
    node_ids: node_ids || {},
    matching_ids: matching_ids || [],
    diagnostics: diagnostics || []
  }
end