Class: Ast::Merge::RenameAwareMatchingReport
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::RenameAwareMatchingReport
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#candidates ⇒ Object
Returns the value of attribute candidates.
-
#capability ⇒ Object
Returns the value of attribute capability.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#from_revision ⇒ Object
Returns the value of attribute from_revision.
-
#matches ⇒ Object
Returns the value of attribute matches.
-
#matching_id ⇒ Object
Returns the value of attribute matching_id.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
-
#to_revision ⇒ Object
Returns the value of attribute to_revision.
-
#unmatched_from ⇒ Object
Returns the value of attribute unmatched_from.
-
#unmatched_to ⇒ Object
Returns the value of attribute unmatched_to.
Instance Method Summary collapse
Instance Attribute Details
#candidates ⇒ Object
Returns the value of attribute candidates
628 629 630 |
# File 'lib/ast/merge.rb', line 628 def candidates @candidates end |
#capability ⇒ Object
Returns the value of attribute capability
628 629 630 |
# File 'lib/ast/merge.rb', line 628 def capability @capability end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
628 629 630 |
# File 'lib/ast/merge.rb', line 628 def diagnostics @diagnostics end |
#from_revision ⇒ Object
Returns the value of attribute from_revision
628 629 630 |
# File 'lib/ast/merge.rb', line 628 def from_revision @from_revision end |
#matches ⇒ Object
Returns the value of attribute matches
628 629 630 |
# File 'lib/ast/merge.rb', line 628 def matches @matches end |
#matching_id ⇒ Object
Returns the value of attribute matching_id
628 629 630 |
# File 'lib/ast/merge.rb', line 628 def matching_id @matching_id end |
#strategy ⇒ Object
Returns the value of attribute strategy
628 629 630 |
# File 'lib/ast/merge.rb', line 628 def strategy @strategy end |
#to_revision ⇒ Object
Returns the value of attribute to_revision
628 629 630 |
# File 'lib/ast/merge.rb', line 628 def to_revision @to_revision end |
#unmatched_from ⇒ Object
Returns the value of attribute unmatched_from
628 629 630 |
# File 'lib/ast/merge.rb', line 628 def unmatched_from @unmatched_from end |
#unmatched_to ⇒ Object
Returns the value of attribute unmatched_to
628 629 630 |
# File 'lib/ast/merge.rb', line 628 def unmatched_to @unmatched_to end |
Instance Method Details
#to_h ⇒ Object
630 631 632 633 634 635 636 637 638 639 640 641 642 643 |
# File 'lib/ast/merge.rb', line 630 def to_h { matching_id: matching_id, strategy: strategy, from_revision: from_revision, to_revision: to_revision, capability: capability.to_h, candidates: (candidates || []).map(&:to_h), matches: (matches || []).map(&:to_h), unmatched_from: unmatched_from || [], unmatched_to: unmatched_to || [], diagnostics: diagnostics || [] } end |