Class: Decidim::Elections::ElectionsReadyToStart
- Inherits:
-
Query
- Object
- Query
- Decidim::Elections::ElectionsReadyToStart
- Defined in:
- app/queries/decidim/elections/elections_ready_to_start.rb
Overview
A class used to find elections ready and near to start the voting period
Class Method Summary collapse
-
.for ⇒ Object
Syntactic sugar to initialize the class and return the queried objects.
Instance Method Summary collapse
-
#query ⇒ Object
Finds the Elections that should be opened.
Class Method Details
.for ⇒ Object
Syntactic sugar to initialize the class and return the queried objects.
8 9 10 |
# File 'app/queries/decidim/elections/elections_ready_to_start.rb', line 8 def self.for new.query end |