Class: Aireview::JevCritic::Assessment
- Inherits:
-
Struct
- Object
- Struct
- Aireview::JevCritic::Assessment
- Defined in:
- lib/aireview/jev_critic.rb
Overview
decision — :keep, :reject or :unverifiable; answers — the numbers behind it, for the log.
Instance Attribute Summary collapse
-
#answers ⇒ Object
Returns the value of attribute answers.
-
#decision ⇒ Object
Returns the value of attribute decision.
-
#id ⇒ Object
Returns the value of attribute id.
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
-
#numbers ⇒ Object
Rounded for reading; the exact numbers stay in answers.
Instance Attribute Details
#answers ⇒ Object
Returns the value of attribute answers
52 53 54 |
# File 'lib/aireview/jev_critic.rb', line 52 def answers @answers end |
#decision ⇒ Object
Returns the value of attribute decision
52 53 54 |
# File 'lib/aireview/jev_critic.rb', line 52 def decision @decision end |
#id ⇒ Object
Returns the value of attribute id
52 53 54 |
# File 'lib/aireview/jev_critic.rb', line 52 def id @id end |
#reason ⇒ Object
Returns the value of attribute reason
52 53 54 |
# File 'lib/aireview/jev_critic.rb', line 52 def reason @reason end |
Instance Method Details
#numbers ⇒ Object
Rounded for reading; the exact numbers stay in answers.
54 55 56 57 58 |
# File 'lib/aireview/jev_critic.rb', line 54 def numbers answers.map do |name, value| value.is_a?(Hash) ? "#{name}=#{value[:choice]}/#{round(value[:confidence])}" : "#{name}=#{round(value)}" end.join(' ') end |