Class: Papercall::Analysis

Inherits:
Object
  • Object
show all
Defined in:
lib/papercall/analysis.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#acceptedObject (readonly)

Returns the value of attribute accepted.



3
4
5
# File 'lib/papercall/analysis.rb', line 3

def accepted
  @accepted
end

#confirmedObject (readonly)

Returns the value of attribute confirmed.



3
4
5
# File 'lib/papercall/analysis.rb', line 3

def confirmed
  @confirmed
end

#highly_ratedObject (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_ratedObject (readonly)

Returns the value of attribute low_rated.



3
4
5
# File 'lib/papercall/analysis.rb', line 3

def low_rated
  @low_rated
end

#maybeObject (readonly)

Returns the value of attribute maybe.



3
4
5
# File 'lib/papercall/analysis.rb', line 3

def maybe
  @maybe
end

#rejectedObject (readonly)

Returns the value of attribute rejected.



3
4
5
# File 'lib/papercall/analysis.rb', line 3

def rejected
  @rejected
end

#reviewersObject (readonly)

Returns the value of attribute reviewers.



3
4
5
# File 'lib/papercall/analysis.rb', line 3

def reviewers
  @reviewers
end

#submissionsObject (readonly)

Returns the value of attribute submissions.



3
4
5
# File 'lib/papercall/analysis.rb', line 3

def submissions
  @submissions
end

#summaryObject (readonly)

Returns the value of attribute summary.



3
4
5
# File 'lib/papercall/analysis.rb', line 3

def summary
  @summary
end

#talks_missing_reviewsObject (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_reviewsObject (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_feedbackObject (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_reviewsObject (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

#waitlistedObject (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_acceptedObject



76
77
78
# File 'lib/papercall/analysis.rb', line 76

def number_accepted
  @accepted.size
end

#number_completedObject



48
49
50
# File 'lib/papercall/analysis.rb', line 48

def number_completed
  @submissions.size - @talks_missing_reviews.size
end

#number_confirmedObject



88
89
90
# File 'lib/papercall/analysis.rb', line 88

def number_confirmed
  @confirmed.size
end

#number_of_active_reviewersObject



40
41
42
# File 'lib/papercall/analysis.rb', line 40

def number_of_active_reviewers
  @reviewers.size
end

#number_of_highly_ratedObject



52
53
54
# File 'lib/papercall/analysis.rb', line 52

def number_of_highly_rated
  @highly_rated.size
end

#number_of_low_ratedObject



56
57
58
# File 'lib/papercall/analysis.rb', line 56

def number_of_low_rated
  @low_rated.size
end

#number_of_maybesObject



60
61
62
# File 'lib/papercall/analysis.rb', line 60

def number_of_maybes
  @maybe.size
end

#number_of_submissionsObject



36
37
38
# File 'lib/papercall/analysis.rb', line 36

def number_of_submissions
  @submissions.size
end

#number_of_waitlistedObject



80
81
82
# File 'lib/papercall/analysis.rb', line 80

def number_of_waitlisted
  @waitlisted.size
end

#number_rejectedObject



84
85
86
# File 'lib/papercall/analysis.rb', line 84

def number_rejected
  @rejected.size
end

#number_with_few_reviewsObject



64
65
66
# File 'lib/papercall/analysis.rb', line 64

def number_with_few_reviews
  @talks_missing_reviews.size
end

#number_with_many_reviewsObject



68
69
70
# File 'lib/papercall/analysis.rb', line 68

def number_with_many_reviews
  @talks_with_many_reviews.size
end

#number_without_feedbackObject



44
45
46
# File 'lib/papercall/analysis.rb', line 44

def number_without_feedback
  @talks_without_feedback.size
end

#number_without_reviewsObject



72
73
74
# File 'lib/papercall/analysis.rb', line 72

def number_without_reviews
  @talks_without_reviews.size
end