Class: Ast::Merge::ConflictCategoryReport

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#categoriesObject

Returns the value of attribute categories

Returns:

  • (Object)

    the current value of categories



757
758
759
# File 'lib/ast/merge.rb', line 757

def categories
  @categories
end

#conflictsObject

Returns the value of attribute conflicts

Returns:

  • (Object)

    the current value of conflicts



757
758
759
# File 'lib/ast/merge.rb', line 757

def conflicts
  @conflicts
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



757
758
759
# File 'lib/ast/merge.rb', line 757

def diagnostics
  @diagnostics
end

#report_idObject

Returns the value of attribute report_id

Returns:

  • (Object)

    the current value of report_id



757
758
759
# File 'lib/ast/merge.rb', line 757

def report_id
  @report_id
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



757
758
759
# File 'lib/ast/merge.rb', line 757

def version
  @version
end

Instance Method Details

#to_hObject



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