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



220
221
222
# File 'lib/ast/merge.rb', line 220

def class_id
  @class_id
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



220
221
222
# File 'lib/ast/merge.rb', line 220

def diagnostics
  @diagnostics
end

#matching_idsObject

Returns the value of attribute matching_ids

Returns:

  • (Object)

    the current value of matching_ids



220
221
222
# File 'lib/ast/merge.rb', line 220

def matching_ids
  @matching_ids
end

#node_idsObject

Returns the value of attribute node_ids

Returns:

  • (Object)

    the current value of node_ids



220
221
222
# File 'lib/ast/merge.rb', line 220

def node_ids
  @node_ids
end

#signatureObject

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



220
221
222
# File 'lib/ast/merge.rb', line 220

def signature
  @signature
end

Instance Method Details

#to_hObject



222
223
224
225
226
227
228
229
230
# File 'lib/ast/merge.rb', line 222

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