Class: Ast::Merge::MatchingDebugArtifacts
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::MatchingDebugArtifacts
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#artifact_id ⇒ Object
Returns the value of attribute artifact_id.
-
#candidates ⇒ Object
Returns the value of attribute candidates.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#matching_id ⇒ Object
Returns the value of attribute matching_id.
-
#owner_sets ⇒ Object
Returns the value of attribute owner_sets.
-
#rejected_matches ⇒ Object
Returns the value of attribute rejected_matches.
-
#selected_matches ⇒ Object
Returns the value of attribute selected_matches.
Instance Method Summary collapse
Instance Attribute Details
#artifact_id ⇒ Object
Returns the value of attribute artifact_id
702 703 704 |
# File 'lib/ast/merge.rb', line 702 def artifact_id @artifact_id end |
#candidates ⇒ Object
Returns the value of attribute candidates
702 703 704 |
# File 'lib/ast/merge.rb', line 702 def candidates @candidates end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
702 703 704 |
# File 'lib/ast/merge.rb', line 702 def diagnostics @diagnostics end |
#enabled ⇒ Object
Returns the value of attribute enabled
702 703 704 |
# File 'lib/ast/merge.rb', line 702 def enabled @enabled end |
#matching_id ⇒ Object
Returns the value of attribute matching_id
702 703 704 |
# File 'lib/ast/merge.rb', line 702 def matching_id @matching_id end |
#owner_sets ⇒ Object
Returns the value of attribute owner_sets
702 703 704 |
# File 'lib/ast/merge.rb', line 702 def owner_sets @owner_sets end |
#rejected_matches ⇒ Object
Returns the value of attribute rejected_matches
702 703 704 |
# File 'lib/ast/merge.rb', line 702 def rejected_matches @rejected_matches end |
#selected_matches ⇒ Object
Returns the value of attribute selected_matches
702 703 704 |
# File 'lib/ast/merge.rb', line 702 def selected_matches @selected_matches end |
Instance Method Details
#to_h ⇒ Object
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 |