Class: Decidim::Elections::ElectionsFinishedToEnd
- Inherits:
-
Query
- Object
- Query
- Decidim::Elections::ElectionsFinishedToEnd
- Defined in:
- app/queries/decidim/elections/elections_finished_to_end.rb
Overview
A class used to find elections finished to close their 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 closed.
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_finished_to_end.rb', line 8 def self.for new.query end |