Class: Papercall::Analysis
- Inherits:
-
Object
- Object
- Papercall::Analysis
- Defined in:
- lib/papercall/analysis.rb
Instance Attribute Summary collapse
-
#accepted ⇒ Object
readonly
Returns the value of attribute accepted.
-
#confirmed ⇒ Object
readonly
Returns the value of attribute confirmed.
-
#highly_rated ⇒ Object
readonly
Returns the value of attribute highly_rated.
-
#low_rated ⇒ Object
readonly
Returns the value of attribute low_rated.
-
#maybe ⇒ Object
readonly
Returns the value of attribute maybe.
-
#rejected ⇒ Object
readonly
Returns the value of attribute rejected.
-
#reviewers ⇒ Object
readonly
Returns the value of attribute reviewers.
-
#submissions ⇒ Object
readonly
Returns the value of attribute submissions.
-
#summary ⇒ Object
readonly
Returns the value of attribute summary.
-
#talks_missing_reviews ⇒ Object
readonly
Returns the value of attribute talks_missing_reviews.
-
#talks_with_many_reviews ⇒ Object
readonly
Returns the value of attribute talks_with_many_reviews.
-
#talks_without_feedback ⇒ Object
readonly
Returns the value of attribute talks_without_feedback.
-
#talks_without_reviews ⇒ Object
readonly
Returns the value of attribute talks_without_reviews.
-
#waitlisted ⇒ Object
readonly
Returns the value of attribute waitlisted.
Instance Method Summary collapse
-
#initialize(submissions) ⇒ Analysis
constructor
A new instance of Analysis.
- #number_accepted ⇒ Object
- #number_completed ⇒ Object
- #number_confirmed ⇒ Object
- #number_of_active_reviewers ⇒ Object
- #number_of_highly_rated ⇒ Object
- #number_of_low_rated ⇒ Object
- #number_of_maybes ⇒ Object
- #number_of_submissions ⇒ Object
- #number_of_waitlisted ⇒ Object
- #number_rejected ⇒ Object
- #number_with_few_reviews ⇒ Object
- #number_with_many_reviews ⇒ Object
- #number_without_feedback ⇒ Object
- #number_without_reviews ⇒ Object
Constructor Details
#initialize(submissions) ⇒ Analysis
Returns a new instance of Analysis.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/papercall/analysis.rb', line 18 def initialize submissions @output = Papercall.configuration.output @submissions = submissions @reviewers = {} @talks_without_reviews = [] @talks_missing_reviews = [] @talks_with_many_reviews = [] @talks_without_feedback = [] @highly_rated = [] @low_rated = [] @maybe = [] @accepted = [] @waitlisted = [] @rejected = [] @confirmed = [] analyze end |
Instance Attribute Details
#accepted ⇒ Object (readonly)
Returns the value of attribute accepted.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def accepted @accepted end |
#confirmed ⇒ Object (readonly)
Returns the value of attribute confirmed.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def confirmed @confirmed end |
#highly_rated ⇒ Object (readonly)
Returns the value of attribute highly_rated.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def highly_rated @highly_rated end |
#low_rated ⇒ Object (readonly)
Returns the value of attribute low_rated.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def low_rated @low_rated end |
#maybe ⇒ Object (readonly)
Returns the value of attribute maybe.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def maybe @maybe end |
#rejected ⇒ Object (readonly)
Returns the value of attribute rejected.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def rejected @rejected end |
#reviewers ⇒ Object (readonly)
Returns the value of attribute reviewers.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def reviewers @reviewers end |
#submissions ⇒ Object (readonly)
Returns the value of attribute submissions.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def submissions @submissions end |
#summary ⇒ Object (readonly)
Returns the value of attribute summary.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def summary @summary end |
#talks_missing_reviews ⇒ Object (readonly)
Returns the value of attribute talks_missing_reviews.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def talks_missing_reviews @talks_missing_reviews end |
#talks_with_many_reviews ⇒ Object (readonly)
Returns the value of attribute talks_with_many_reviews.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def talks_with_many_reviews @talks_with_many_reviews end |
#talks_without_feedback ⇒ Object (readonly)
Returns the value of attribute talks_without_feedback.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def talks_without_feedback @talks_without_feedback end |
#talks_without_reviews ⇒ Object (readonly)
Returns the value of attribute talks_without_reviews.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def talks_without_reviews @talks_without_reviews end |
#waitlisted ⇒ Object (readonly)
Returns the value of attribute waitlisted.
3 4 5 |
# File 'lib/papercall/analysis.rb', line 3 def waitlisted @waitlisted end |
Instance Method Details
#number_accepted ⇒ Object
76 77 78 |
# File 'lib/papercall/analysis.rb', line 76 def number_accepted @accepted.size end |
#number_completed ⇒ Object
48 49 50 |
# File 'lib/papercall/analysis.rb', line 48 def number_completed @submissions.size - @talks_missing_reviews.size end |
#number_confirmed ⇒ Object
88 89 90 |
# File 'lib/papercall/analysis.rb', line 88 def number_confirmed @confirmed.size end |
#number_of_active_reviewers ⇒ Object
40 41 42 |
# File 'lib/papercall/analysis.rb', line 40 def number_of_active_reviewers @reviewers.size end |
#number_of_highly_rated ⇒ Object
52 53 54 |
# File 'lib/papercall/analysis.rb', line 52 def number_of_highly_rated @highly_rated.size end |
#number_of_low_rated ⇒ Object
56 57 58 |
# File 'lib/papercall/analysis.rb', line 56 def number_of_low_rated @low_rated.size end |
#number_of_maybes ⇒ Object
60 61 62 |
# File 'lib/papercall/analysis.rb', line 60 def number_of_maybes @maybe.size end |
#number_of_submissions ⇒ Object
36 37 38 |
# File 'lib/papercall/analysis.rb', line 36 def number_of_submissions @submissions.size end |
#number_of_waitlisted ⇒ Object
80 81 82 |
# File 'lib/papercall/analysis.rb', line 80 def number_of_waitlisted @waitlisted.size end |
#number_rejected ⇒ Object
84 85 86 |
# File 'lib/papercall/analysis.rb', line 84 def number_rejected @rejected.size end |
#number_with_few_reviews ⇒ Object
64 65 66 |
# File 'lib/papercall/analysis.rb', line 64 def number_with_few_reviews @talks_missing_reviews.size end |
#number_with_many_reviews ⇒ Object
68 69 70 |
# File 'lib/papercall/analysis.rb', line 68 def number_with_many_reviews @talks_with_many_reviews.size end |
#number_without_feedback ⇒ Object
44 45 46 |
# File 'lib/papercall/analysis.rb', line 44 def number_without_feedback @talks_without_feedback.size end |
#number_without_reviews ⇒ Object
72 73 74 |
# File 'lib/papercall/analysis.rb', line 72 def number_without_reviews @talks_without_reviews.size end |