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



233
234
235
# File 'lib/ast/merge.rb', line 233

def category
  @category
end

#class_idObject

Returns the value of attribute class_id

Returns:

  • (Object)

    the current value of class_id



233
234
235
# File 'lib/ast/merge.rb', line 233

def class_id
  @class_id
end

#matching_idsObject

Returns the value of attribute matching_ids

Returns:

  • (Object)

    the current value of matching_ids



233
234
235
# File 'lib/ast/merge.rb', line 233

def matching_ids
  @matching_ids
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



233
234
235
# File 'lib/ast/merge.rb', line 233

def message
  @message
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



233
234
235
# File 'lib/ast/merge.rb', line 233

def severity
  @severity
end

Instance Method Details

#to_hObject



234
235
236
237
238
239
240
241
242
# File 'lib/ast/merge.rb', line 234

def to_h
  {
    severity: severity,
    category: category,
    class_id: class_id,
    message: message,
    matching_ids: matching_ids || []
  }
end