Class: Ast::Merge::MatchingDebugArtifacts

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#artifact_idObject

Returns the value of attribute artifact_id

Returns:

  • (Object)

    the current value of artifact_id



702
703
704
# File 'lib/ast/merge.rb', line 702

def artifact_id
  @artifact_id
end

#candidatesObject

Returns the value of attribute candidates

Returns:

  • (Object)

    the current value of candidates



702
703
704
# File 'lib/ast/merge.rb', line 702

def candidates
  @candidates
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



702
703
704
# File 'lib/ast/merge.rb', line 702

def diagnostics
  @diagnostics
end

#enabledObject

Returns the value of attribute enabled

Returns:

  • (Object)

    the current value of enabled



702
703
704
# File 'lib/ast/merge.rb', line 702

def enabled
  @enabled
end

#matching_idObject

Returns the value of attribute matching_id

Returns:

  • (Object)

    the current value of matching_id



702
703
704
# File 'lib/ast/merge.rb', line 702

def matching_id
  @matching_id
end

#owner_setsObject

Returns the value of attribute owner_sets

Returns:

  • (Object)

    the current value of owner_sets



702
703
704
# File 'lib/ast/merge.rb', line 702

def owner_sets
  @owner_sets
end

#rejected_matchesObject

Returns the value of attribute rejected_matches

Returns:

  • (Object)

    the current value of rejected_matches



702
703
704
# File 'lib/ast/merge.rb', line 702

def rejected_matches
  @rejected_matches
end

#selected_matchesObject

Returns the value of attribute selected_matches

Returns:

  • (Object)

    the current value of selected_matches



702
703
704
# File 'lib/ast/merge.rb', line 702

def selected_matches
  @selected_matches
end

Instance Method Details

#to_hObject



704
705
706
707
708
709
710
711
712
713
714
715
# File 'lib/ast/merge.rb', line 704

def to_h
  {
    artifact_id: artifact_id,
    matching_id: matching_id,
    enabled: enabled,
    owner_sets: (owner_sets || []).map(&:to_h),
    candidates: (candidates || []).map(&:to_h),
    selected_matches: (selected_matches || []).map(&:to_h),
    rejected_matches: (rejected_matches || []).map(&:to_h),
    diagnostics: diagnostics || []
  }
end