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



325
326
327
# File 'lib/ast/merge.rb', line 325

def changes
  @changes
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



325
326
327
# File 'lib/ast/merge.rb', line 325

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



325
326
327
# File 'lib/ast/merge.rb', line 325

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



325
326
327
# File 'lib/ast/merge.rb', line 325

def raw_merge_id
  @raw_merge_id
end

Instance Method Details

#to_hObject



326
327
328
329
330
331
332
333
# File 'lib/ast/merge.rb', line 326

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