Class: Ast::Merge::MergeIRComparisonReport

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#baselineObject

Returns the value of attribute baseline

Returns:

  • (Object)

    the current value of baseline



424
425
426
# File 'lib/ast/merge.rb', line 424

def baseline
  @baseline
end

#casesObject

Returns the value of attribute cases

Returns:

  • (Object)

    the current value of cases



424
425
426
# File 'lib/ast/merge.rb', line 424

def cases
  @cases
end

#comparison_idObject

Returns the value of attribute comparison_id

Returns:

  • (Object)

    the current value of comparison_id



424
425
426
# File 'lib/ast/merge.rb', line 424

def comparison_id
  @comparison_id
end

#prototypeObject

Returns the value of attribute prototype

Returns:

  • (Object)

    the current value of prototype



424
425
426
# File 'lib/ast/merge.rb', line 424

def prototype
  @prototype
end

#summaryObject

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



424
425
426
# File 'lib/ast/merge.rb', line 424

def summary
  @summary
end

Instance Method Details

#to_hObject



425
426
427
428
429
430
431
432
433
# File 'lib/ast/merge.rb', line 425

def to_h
  {
    comparison_id: comparison_id,
    baseline: baseline,
    prototype: prototype,
    cases: (cases || []).map(&:to_h),
    summary: summary.to_h
  }
end