Class: Ast::Merge::InconsistencyReport

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



372
373
374
# File 'lib/ast/merge.rb', line 372

def diagnostics
  @diagnostics
end

#inconsistenciesObject

Returns the value of attribute inconsistencies

Returns:

  • (Object)

    the current value of inconsistencies



372
373
374
# File 'lib/ast/merge.rb', line 372

def inconsistencies
  @inconsistencies
end

#raw_merge_idObject

Returns the value of attribute raw_merge_id

Returns:

  • (Object)

    the current value of raw_merge_id



372
373
374
# File 'lib/ast/merge.rb', line 372

def raw_merge_id
  @raw_merge_id
end

#report_idObject

Returns the value of attribute report_id

Returns:

  • (Object)

    the current value of report_id



372
373
374
# File 'lib/ast/merge.rb', line 372

def report_id
  @report_id
end

Instance Method Details

#to_hObject



373
374
375
376
377
378
379
380
# File 'lib/ast/merge.rb', line 373

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