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



724
725
726
# File 'lib/ast/merge.rb', line 724

def artifact_id
  @artifact_id
end

#candidatesObject

Returns the value of attribute candidates

Returns:

  • (Object)

    the current value of candidates



724
725
726
# File 'lib/ast/merge.rb', line 724

def candidates
  @candidates
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



724
725
726
# File 'lib/ast/merge.rb', line 724

def diagnostics
  @diagnostics
end

#enabledObject

Returns the value of attribute enabled

Returns:

  • (Object)

    the current value of enabled



724
725
726
# File 'lib/ast/merge.rb', line 724

def enabled
  @enabled
end

#matching_idObject

Returns the value of attribute matching_id

Returns:

  • (Object)

    the current value of matching_id



724
725
726
# File 'lib/ast/merge.rb', line 724

def matching_id
  @matching_id
end

#owner_setsObject

Returns the value of attribute owner_sets

Returns:

  • (Object)

    the current value of owner_sets



724
725
726
# File 'lib/ast/merge.rb', line 724

def owner_sets
  @owner_sets
end

#rejected_matchesObject

Returns the value of attribute rejected_matches

Returns:

  • (Object)

    the current value of rejected_matches



724
725
726
# File 'lib/ast/merge.rb', line 724

def rejected_matches
  @rejected_matches
end

#selected_matchesObject

Returns the value of attribute selected_matches

Returns:

  • (Object)

    the current value of selected_matches



724
725
726
# File 'lib/ast/merge.rb', line 724

def selected_matches
  @selected_matches
end

Instance Method Details

#to_hObject



726
727
728
729
730
731
732
733
734
735
736
737
# File 'lib/ast/merge.rb', line 726

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