Class: Decidim::Votings::PollingStationClosure

Inherits:
ApplicationRecord
  • Object
show all
Includes:
HasAttachments
Defined in:
decidim-elections/app/models/decidim/votings/polling_station_closure.rb

Overview

The data store for a Polling Station Closure.

Instance Method Summary collapse

Methods included from HasAttachments

#attachment_context

Instance Method Details

#signed?Boolean

Public: Checks if the closure has been signed by the polling officer or not.

Returns Boolean.

Returns:

  • (Boolean)

31
32
33
# File 'decidim-elections/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.

Returns:

  • (Boolean)

38
39
40
# File 'decidim-elections/app/models/decidim/votings/polling_station_closure.rb', line 38

def validated?
  validated_at.present?
end