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



350
351
352
# File 'lib/ast/merge.rb', line 350

def diagnostics
  @diagnostics
end

#inconsistenciesObject

Returns the value of attribute inconsistencies

Returns:

  • (Object)

    the current value of inconsistencies



350
351
352
# File 'lib/ast/merge.rb', line 350

def inconsistencies
  @inconsistencies
end

#raw_merge_idObject

Returns the value of attribute raw_merge_id

Returns:

  • (Object)

    the current value of raw_merge_id



350
351
352
# File 'lib/ast/merge.rb', line 350

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



350
351
352
# File 'lib/ast/merge.rb', line 350

def report_id
  @report_id
end

Instance Method Details

#to_hObject



351
352
353
354
355
356
357
358
# File 'lib/ast/merge.rb', line 351

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