Class: Papercall::Fetcher
- Inherits:
-
Object
- Object
- Papercall::Fetcher
- Defined in:
- lib/papercall/fetcher.rb
Overview
Superclass for fetchers. A fetcher fetches submissions of different categories and stores them in instance variables.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#accepted ⇒ Object
readonly
Returns the value of attribute accepted.
-
#declined ⇒ Object
readonly
Returns the value of attribute declined.
-
#rejected ⇒ Object
readonly
Returns the value of attribute rejected.
-
#submitted ⇒ Object
readonly
Returns the value of attribute submitted.
-
#waitlist ⇒ Object
readonly
Returns the value of attribute waitlist.
Instance Method Summary collapse
Instance Attribute Details
#accepted ⇒ Object (readonly)
Returns the value of attribute accepted.
5 6 7 |
# File 'lib/papercall/fetcher.rb', line 5 def accepted @accepted end |
#declined ⇒ Object (readonly)
Returns the value of attribute declined.
5 6 7 |
# File 'lib/papercall/fetcher.rb', line 5 def declined @declined end |
#rejected ⇒ Object (readonly)
Returns the value of attribute rejected.
5 6 7 |
# File 'lib/papercall/fetcher.rb', line 5 def rejected @rejected end |
#submitted ⇒ Object (readonly)
Returns the value of attribute submitted.
5 6 7 |
# File 'lib/papercall/fetcher.rb', line 5 def submitted @submitted end |
#waitlist ⇒ Object (readonly)
Returns the value of attribute waitlist.
5 6 7 |
# File 'lib/papercall/fetcher.rb', line 5 def waitlist @waitlist end |
Instance Method Details
#all ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/papercall/fetcher.rb', line 7 def all { submitted: @submitted, accepted: @accepted, rejected: @rejected, waitlist: @waitlist, declined: @declined } end |
#analysis ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/papercall/fetcher.rb', line 17 def analysis all = @submitted all += @accepted all += @rejected all += @waitlist all += @declined all end |