Class: Ast::Merge::MergeIRComparisonReport
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::MergeIRComparisonReport
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#baseline ⇒ Object
Returns the value of attribute baseline.
-
#cases ⇒ Object
Returns the value of attribute cases.
-
#comparison_id ⇒ Object
Returns the value of attribute comparison_id.
-
#prototype ⇒ Object
Returns the value of attribute prototype.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
Instance Attribute Details
#baseline ⇒ Object
Returns the value of attribute baseline
424 425 426 |
# File 'lib/ast/merge.rb', line 424 def baseline @baseline end |
#cases ⇒ Object
Returns the value of attribute cases
424 425 426 |
# File 'lib/ast/merge.rb', line 424 def cases @cases end |
#comparison_id ⇒ Object
Returns the value of attribute comparison_id
424 425 426 |
# File 'lib/ast/merge.rb', line 424 def comparison_id @comparison_id end |
#prototype ⇒ Object
Returns the value of attribute prototype
424 425 426 |
# File 'lib/ast/merge.rb', line 424 def prototype @prototype end |
#summary ⇒ Object
Returns the value of attribute summary
424 425 426 |
# File 'lib/ast/merge.rb', line 424 def summary @summary end |
Instance Method Details
#to_h ⇒ Object
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 |