Class: Ast::Merge::ClassMappingDiagnostic

Inherits:
Struct
  • Object
show all
Defined in:
lib/ast/merge.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#categoryObject

Returns the value of attribute category

Returns:

  • (Object)

    the current value of category



255
256
257
# File 'lib/ast/merge.rb', line 255

def category
  @category
end

#class_idObject

Returns the value of attribute class_id

Returns:

  • (Object)

    the current value of class_id



255
256
257
# File 'lib/ast/merge.rb', line 255

def class_id
  @class_id
end

#matching_idsObject

Returns the value of attribute matching_ids

Returns:

  • (Object)

    the current value of matching_ids



255
256
257
# File 'lib/ast/merge.rb', line 255

def matching_ids
  @matching_ids
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



255
256
257
# File 'lib/ast/merge.rb', line 255

def message
  @message
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



255
256
257
# File 'lib/ast/merge.rb', line 255

def severity
  @severity
end

Instance Method Details

#to_hObject



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: message,
    matching_ids: matching_ids || []
  }
end