Class: Insika::Harvest::Gate::Report

Inherits:
Data
  • Object
show all
Defined in:
lib/insika/harvest/gate.rb

Overview

The verdict for one candidate. passed is the only field the caller acts on; the rest is what an operator reads.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#baseline_casesObject (readonly)

Returns the value of attribute baseline_cases

Returns:

  • (Object)

    the current value of baseline_cases



25
26
27
# File 'lib/insika/harvest/gate.rb', line 25

def baseline_cases
  @baseline_cases
end

#cachedObject (readonly)

Returns the value of attribute cached

Returns:

  • (Object)

    the current value of cached



25
26
27
# File 'lib/insika/harvest/gate.rb', line 25

def cached
  @cached
end

#candidate_idObject (readonly)

Returns the value of attribute candidate_id

Returns:

  • (Object)

    the current value of candidate_id



25
26
27
# File 'lib/insika/harvest/gate.rb', line 25

def candidate_id
  @candidate_id
end

#casesObject (readonly)

Returns the value of attribute cases

Returns:

  • (Object)

    the current value of cases



25
26
27
# File 'lib/insika/harvest/gate.rb', line 25

def cases
  @cases
end

#passedObject (readonly)

Returns the value of attribute passed

Returns:

  • (Object)

    the current value of passed



25
26
27
# File 'lib/insika/harvest/gate.rb', line 25

def passed
  @passed
end

#passed_casesObject (readonly)

Returns the value of attribute passed_cases

Returns:

  • (Object)

    the current value of passed_cases



25
26
27
# File 'lib/insika/harvest/gate.rb', line 25

def passed_cases
  @passed_cases
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



25
26
27
# File 'lib/insika/harvest/gate.rb', line 25

def reason
  @reason
end

#regressionsObject (readonly)

Returns the value of attribute regressions

Returns:

  • (Object)

    the current value of regressions



25
26
27
# File 'lib/insika/harvest/gate.rb', line 25

def regressions
  @regressions
end

#reportObject (readonly)

Returns the value of attribute report

Returns:

  • (Object)

    the current value of report



25
26
27
# File 'lib/insika/harvest/gate.rb', line 25

def report
  @report
end

#tokensObject (readonly)

Returns the value of attribute tokens

Returns:

  • (Object)

    the current value of tokens



25
26
27
# File 'lib/insika/harvest/gate.rb', line 25

def tokens
  @tokens
end

Instance Method Details

#to_hObject



27
28
29
30
31
32
# File 'lib/insika/harvest/gate.rb', line 27

def to_h
  { "candidate_id" => candidate_id, "passed" => passed, "reason" => reason,
    "cases" => cases, "passed_cases" => passed_cases, "baseline_cases" => baseline_cases,
    "regressions" => regressions, "report" => report, "tokens" => tokens,
    "cached" => cached }
end