Class: Ast::Merge::ConflictCategoryReport
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::ConflictCategoryReport
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#categories ⇒ Object
Returns the value of attribute categories.
-
#conflicts ⇒ Object
Returns the value of attribute conflicts.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#report_id ⇒ Object
Returns the value of attribute report_id.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#categories ⇒ Object
Returns the value of attribute categories
735 736 737 |
# File 'lib/ast/merge.rb', line 735 def categories @categories end |
#conflicts ⇒ Object
Returns the value of attribute conflicts
735 736 737 |
# File 'lib/ast/merge.rb', line 735 def conflicts @conflicts end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
735 736 737 |
# File 'lib/ast/merge.rb', line 735 def diagnostics @diagnostics end |
#report_id ⇒ Object
Returns the value of attribute report_id
735 736 737 |
# File 'lib/ast/merge.rb', line 735 def report_id @report_id end |
#version ⇒ Object
Returns the value of attribute version
735 736 737 |
# File 'lib/ast/merge.rb', line 735 def version @version end |
Instance Method Details
#to_h ⇒ Object
737 738 739 740 741 742 743 744 745 |
# File 'lib/ast/merge.rb', line 737 def to_h { report_id: report_id, version: version, categories: categories || [], conflicts: (conflicts || []).map(&:to_h), diagnostics: diagnostics || [] } end |