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
721 722 723 |
# File 'lib/ast/merge.rb', line 721 def default_order @default_order end |
#diagnostics ⇒ Object
Returns the value of attribute diagnostics
721 722 723 |
# File 'lib/ast/merge.rb', line 721 def diagnostics @diagnostics end |
#report_id ⇒ Object
Returns the value of attribute report_id
721 722 723 |
# File 'lib/ast/merge.rb', line 721 def report_id @report_id end |
#scopes ⇒ Object
Returns the value of attribute scopes
721 722 723 |
# File 'lib/ast/merge.rb', line 721 def scopes @scopes end |
#version ⇒ Object
Returns the value of attribute version
721 722 723 |
# File 'lib/ast/merge.rb', line 721 def version @version end |
Instance Method Details
#to_h ⇒ Object
722 723 724 725 726 727 728 729 730 |
# File 'lib/ast/merge.rb', line 722 def to_h { report_id: report_id, version: version, scopes: (scopes || []).map(&:to_h), default_order: default_order || [], diagnostics: diagnostics || [] } end |