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
402 403 404 |
# File 'lib/ast/merge.rb', line 402 def baseline @baseline end |
#cases ⇒ Object
Returns the value of attribute cases
402 403 404 |
# File 'lib/ast/merge.rb', line 402 def cases @cases end |
#comparison_id ⇒ Object
Returns the value of attribute comparison_id
402 403 404 |
# File 'lib/ast/merge.rb', line 402 def comparison_id @comparison_id end |
#prototype ⇒ Object
Returns the value of attribute prototype
402 403 404 |
# File 'lib/ast/merge.rb', line 402 def prototype @prototype end |
#summary ⇒ Object
Returns the value of attribute summary
402 403 404 |
# File 'lib/ast/merge.rb', line 402 def summary @summary end |
Instance Method Details
#to_h ⇒ Object
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 |