Class: Ast::Merge::RawMerge

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#changesObject

Returns the value of attribute changes

Returns:

  • (Object)

    the current value of changes



347
348
349
# File 'lib/ast/merge.rb', line 347

def changes
  @changes
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



347
348
349
# File 'lib/ast/merge.rb', line 347

def diagnostics
  @diagnostics
end

#input_change_set_idsObject

Returns the value of attribute input_change_set_ids

Returns:

  • (Object)

    the current value of input_change_set_ids



347
348
349
# File 'lib/ast/merge.rb', line 347

def input_change_set_ids
  @input_change_set_ids
end

#raw_merge_idObject

Returns the value of attribute raw_merge_id

Returns:

  • (Object)

    the current value of raw_merge_id



347
348
349
# File 'lib/ast/merge.rb', line 347

def raw_merge_id
  @raw_merge_id
end

Instance Method Details

#to_hObject



348
349
350
351
352
353
354
355
# File 'lib/ast/merge.rb', line 348

def to_h
  {
    raw_merge_id: raw_merge_id,
    input_change_set_ids: input_change_set_ids || [],
    changes: (changes || []).map(&:to_h),
    diagnostics: diagnostics || []
  }
end