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
757 758 759 |
# File 'lib/ast/merge.rb', line 757 def categories @categories end |
#conflicts ⇒ Object
Returns the value of attribute conflicts
757 758 759 |
# File 'lib/ast/merge.rb', line 757 def conflicts @conflicts end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
757 758 759 |
# File 'lib/ast/merge.rb', line 757 def diagnostics @diagnostics end |
#report_id ⇒ Object
Returns the value of attribute report_id
757 758 759 |
# File 'lib/ast/merge.rb', line 757 def report_id @report_id end |
#version ⇒ Object
Returns the value of attribute version
757 758 759 |
# File 'lib/ast/merge.rb', line 757 def version @version end |
Instance Method Details
#to_h ⇒ Object
759 760 761 762 763 764 765 766 767 |
# File 'lib/ast/merge.rb', line 759 def to_h { report_id: report_id, version: version, categories: categories || [], conflicts: (conflicts || []).map(&:to_h), diagnostics: diagnostics || [] } end |