Class: Ast::Merge::ClassMappingDiagnostic
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::ClassMappingDiagnostic
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#class_id ⇒ Object
Returns the value of attribute class_id.
-
#matching_ids ⇒ Object
Returns the value of attribute matching_ids.
-
#message ⇒ Object
Returns the value of attribute message.
-
#severity ⇒ Object
Returns the value of attribute severity.
Instance Method Summary collapse
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category
255 256 257 |
# File 'lib/ast/merge.rb', line 255 def category @category end |
#class_id ⇒ Object
Returns the value of attribute class_id
255 256 257 |
# File 'lib/ast/merge.rb', line 255 def class_id @class_id end |
#matching_ids ⇒ Object
Returns the value of attribute matching_ids
255 256 257 |
# File 'lib/ast/merge.rb', line 255 def matching_ids @matching_ids end |
#message ⇒ Object
Returns the value of attribute message
255 256 257 |
# File 'lib/ast/merge.rb', line 255 def @message end |
#severity ⇒ Object
Returns the value of attribute severity
255 256 257 |
# File 'lib/ast/merge.rb', line 255 def severity @severity end |
Instance Method Details
#to_h ⇒ Object
256 257 258 259 260 261 262 263 264 |
# File 'lib/ast/merge.rb', line 256 def to_h { severity: severity, category: category, class_id: class_id, message: , matching_ids: matching_ids || [] } end |