Class: Decidim::Votings::PollingStationClosure
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Decidim::Votings::PollingStationClosure
- Includes:
- HasAttachments
- Defined in:
- app/models/decidim/votings/polling_station_closure.rb
Overview
The data store for a Polling Station Closure.
Instance Method Summary collapse
-
#signed? ⇒ Boolean
Public: Checks if the closure has been signed by the polling officer or not.
-
#validated? ⇒ Boolean
Public: Checks if the closure has been validated by the monitoring committee or not.
Instance Method Details
#signed? ⇒ Boolean
Public: Checks if the closure has been signed by the polling officer or not.
Returns Boolean.
31 32 33 |
# File 'app/models/decidim/votings/polling_station_closure.rb', line 31 def signed? signed_at.present? end |
#validated? ⇒ Boolean
Public: Checks if the closure has been validated by the monitoring committee or not.
Returns Boolean.
38 39 40 |
# File 'app/models/decidim/votings/polling_station_closure.rb', line 38 def validated? validated_at.present? end |