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



358
359
360
# File 'lib/ast/merge.rb', line 358

def category
  @category
end

#change_idsObject

Returns the value of attribute change_ids

Returns:

  • (Object)

    the current value of change_ids



358
359
360
# File 'lib/ast/merge.rb', line 358

def change_ids
  @change_ids
end

#class_idsObject

Returns the value of attribute class_ids

Returns:

  • (Object)

    the current value of class_ids



358
359
360
# File 'lib/ast/merge.rb', line 358

def class_ids
  @class_ids
end

#inconsistency_idObject

Returns the value of attribute inconsistency_id

Returns:

  • (Object)

    the current value of inconsistency_id



358
359
360
# File 'lib/ast/merge.rb', line 358

def inconsistency_id
  @inconsistency_id
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



358
359
360
# File 'lib/ast/merge.rb', line 358

def message
  @message
end

#severityObject

Returns the value of attribute severity

Returns:

  • (Object)

    the current value of severity



358
359
360
# File 'lib/ast/merge.rb', line 358

def severity
  @severity
end

Instance Method Details

#to_hObject



360
361
362
363
364
365
366
367
368
369
# File 'lib/ast/merge.rb', line 360

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