Class: Insika::Refinement::Panel::Entry
- Inherits:
-
Data
- Object
- Data
- Insika::Refinement::Panel::Entry
- 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
-
#candidate ⇒ Object
readonly
Returns the value of attribute candidate.
-
#proposers ⇒ Object
readonly
Returns the value of attribute proposers.
-
#report ⇒ Object
readonly
Returns the value of attribute report.
Instance Method Summary collapse
Instance Attribute Details
#candidate ⇒ Object (readonly)
Returns the value of attribute candidate
68 69 70 |
# File 'lib/insika/refinement/panel.rb', line 68 def candidate @candidate end |
#proposers ⇒ Object (readonly)
Returns the value of attribute proposers
68 69 70 |
# File 'lib/insika/refinement/panel.rb', line 68 def proposers @proposers end |
#report ⇒ Object (readonly)
Returns the value of attribute report
68 69 70 |
# File 'lib/insika/refinement/panel.rb', line 68 def report @report end |
Instance Method Details
#converged ⇒ Object
69 |
# File 'lib/insika/refinement/panel.rb', line 69 def converged = proposers.size |
#passed? ⇒ Boolean
70 |
# File 'lib/insika/refinement/panel.rb', line 70 def passed? = report&.passed == true |
#to_h ⇒ Object
72 73 |
# File 'lib/insika/refinement/panel.rb', line 72 def to_h = { "candidate" => candidate.to_h, "proposers" => proposers, "gate" => report&.to_h } |