Class: Ast::Merge::FallbackScopeReport
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::FallbackScopeReport
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#default_order ⇒ Object
Returns the value of attribute default_order.
-
#diagnostics ⇒ Object
Returns the value of attribute diagnostics.
-
#report_id ⇒ Object
Returns the value of attribute report_id.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#default_order ⇒ Object
Returns the value of attribute default_order
743 744 745 |
# File 'lib/ast/merge.rb', line 743 def default_order @default_order end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
743 744 745 |
# File 'lib/ast/merge.rb', line 743 def diagnostics @diagnostics end |
#report_id ⇒ Object
Returns the value of attribute report_id
743 744 745 |
# File 'lib/ast/merge.rb', line 743 def report_id @report_id end |
#scopes ⇒ Object
Returns the value of attribute scopes
743 744 745 |
# File 'lib/ast/merge.rb', line 743 def scopes @scopes end |
#version ⇒ Object
Returns the value of attribute version
743 744 745 |
# File 'lib/ast/merge.rb', line 743 def version @version end |
Instance Method Details
#to_h ⇒ Object
744 745 746 747 748 749 750 751 752 |
# File 'lib/ast/merge.rb', line 744 def to_h { report_id: report_id, version: version, scopes: (scopes || []).map(&:to_h), default_order: default_order || [], diagnostics: diagnostics || [] } end |