Class: Insika::Refinement::Panel::Entry

Inherits:
Data
  • Object
show all
Defined in:
lib/insika/refinement/panel.rb

Overview

One member of the panel: the candidate, WHO wrote it (more than one model when they converged on the identical edit set), and how it scored.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#candidateObject (readonly)

Returns the value of attribute candidate

Returns:

  • (Object)

    the current value of candidate



68
69
70
# File 'lib/insika/refinement/panel.rb', line 68

def candidate
  @candidate
end

#proposersObject (readonly)

Returns the value of attribute proposers

Returns:

  • (Object)

    the current value of proposers



68
69
70
# File 'lib/insika/refinement/panel.rb', line 68

def proposers
  @proposers
end

#reportObject (readonly)

Returns the value of attribute report

Returns:

  • (Object)

    the current value of report



68
69
70
# File 'lib/insika/refinement/panel.rb', line 68

def report
  @report
end

Instance Method Details

#convergedObject



69
# File 'lib/insika/refinement/panel.rb', line 69

def converged = proposers.size

#passed?Boolean

Returns:

  • (Boolean)


70
# File 'lib/insika/refinement/panel.rb', line 70

def passed? = report&.passed == true

#to_hObject



72
73
# File 'lib/insika/refinement/panel.rb', line 72

def to_h = { "candidate" => candidate.to_h, "proposers" => proposers,
"gate" => report&.to_h }