Class: Ast::Merge::MergeIRComparisonCase

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#case_idObject

Returns the value of attribute case_id

Returns:

  • (Object)

    the current value of case_id



374
375
376
# File 'lib/ast/merge.rb', line 374

def case_id
  @case_id
end

#diagnosticsObject

Returns the value of attribute diagnostics

Returns:

  • (Object)

    the current value of diagnostics



374
375
376
# File 'lib/ast/merge.rb', line 374

def diagnostics
  @diagnostics
end

#familyObject

Returns the value of attribute family

Returns:

  • (Object)

    the current value of family



374
375
376
# File 'lib/ast/merge.rb', line 374

def family
  @family
end

#merge_ir_advantageObject

Returns the value of attribute merge_ir_advantage

Returns:

  • (Object)

    the current value of merge_ir_advantage



374
375
376
# File 'lib/ast/merge.rb', line 374

def merge_ir_advantage
  @merge_ir_advantage
end

#merge_ir_outcomeObject

Returns the value of attribute merge_ir_outcome

Returns:

  • (Object)

    the current value of merge_ir_outcome



374
375
376
# File 'lib/ast/merge.rb', line 374

def merge_ir_outcome
  @merge_ir_outcome
end

#owner_path_outcomeObject

Returns the value of attribute owner_path_outcome

Returns:

  • (Object)

    the current value of owner_path_outcome



374
375
376
# File 'lib/ast/merge.rb', line 374

def owner_path_outcome
  @owner_path_outcome
end

#scenarioObject

Returns the value of attribute scenario

Returns:

  • (Object)

    the current value of scenario



374
375
376
# File 'lib/ast/merge.rb', line 374

def scenario
  @scenario
end

Instance Method Details

#to_hObject



376
377
378
379
380
381
382
383
384
385
386
# File 'lib/ast/merge.rb', line 376

def to_h
  {
    case_id: case_id,
    family: family,
    scenario: scenario,
    owner_path_outcome: owner_path_outcome,
    merge_ir_outcome: merge_ir_outcome,
    merge_ir_advantage: merge_ir_advantage,
    diagnostics: diagnostics || []
  }
end