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



735
736
737
# File 'lib/ast/merge.rb', line 735

def categories
  @categories
end

#conflictsObject

Returns the value of attribute conflicts

Returns:

  • (Object)

    the current value of conflicts



735
736
737
# File 'lib/ast/merge.rb', line 735

def conflicts
  @conflicts
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



735
736
737
# File 'lib/ast/merge.rb', line 735

def diagnostics
  @diagnostics
end

#report_idObject

Returns the value of attribute report_id

Returns:

  • (Object)

    the current value of report_id



735
736
737
# File 'lib/ast/merge.rb', line 735

def report_id
  @report_id
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



735
736
737
# File 'lib/ast/merge.rb', line 735

def version
  @version
end

Instance Method Details

#to_hObject



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