Class: Ast::Merge::MergeInconsistency

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



336
337
338
# File 'lib/ast/merge.rb', line 336

def category
  @category
end

#change_idsObject

Returns the value of attribute change_ids

Returns:

  • (Object)

    the current value of change_ids



336
337
338
# File 'lib/ast/merge.rb', line 336

def change_ids
  @change_ids
end

#class_idsObject

Returns the value of attribute class_ids

Returns:

  • (Object)

    the current value of class_ids



336
337
338
# File 'lib/ast/merge.rb', line 336

def class_ids
  @class_ids
end

#inconsistency_idObject

Returns the value of attribute inconsistency_id

Returns:

  • (Object)

    the current value of inconsistency_id



336
337
338
# File 'lib/ast/merge.rb', line 336

def inconsistency_id
  @inconsistency_id
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



336
337
338
# File 'lib/ast/merge.rb', line 336

def message
  @message
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



336
337
338
# File 'lib/ast/merge.rb', line 336

def severity
  @severity
end

Instance Method Details

#to_hObject



338
339
340
341
342
343
344
345
346
347
# File 'lib/ast/merge.rb', line 338

def to_h
  {
    inconsistency_id: inconsistency_id,
    category: category,
    severity: severity,
    class_ids: class_ids || [],
    change_ids: change_ids || [],
    message: message
  }
end