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



402
403
404
# File 'lib/ast/merge.rb', line 402

def baseline
  @baseline
end

#casesObject

Returns the value of attribute cases

Returns:

  • (Object)

    the current value of cases



402
403
404
# File 'lib/ast/merge.rb', line 402

def cases
  @cases
end

#comparison_idObject

Returns the value of attribute comparison_id

Returns:

  • (Object)

    the current value of comparison_id



402
403
404
# File 'lib/ast/merge.rb', line 402

def comparison_id
  @comparison_id
end

#prototypeObject

Returns the value of attribute prototype

Returns:

  • (Object)

    the current value of prototype



402
403
404
# File 'lib/ast/merge.rb', line 402

def prototype
  @prototype
end

#summaryObject

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



402
403
404
# File 'lib/ast/merge.rb', line 402

def summary
  @summary
end

Instance Method Details

#to_hObject



403
404
405
406
407
408
409
410
411
# File 'lib/ast/merge.rb', line 403

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