Class: Decidim::Votings::PollingOfficers::PollingStationAssignedEvent
- Inherits:
-
Events::SimpleEvent
- Object
- Events::SimpleEvent
- Decidim::Votings::PollingOfficers::PollingStationAssignedEvent
- Defined in:
- app/events/decidim/votings/polling_officers/polling_station_assigned_event.rb
Instance Method Summary collapse
Instance Method Details
#polling_officer_zone_url ⇒ Object
18 19 20 |
# File 'app/events/decidim/votings/polling_officers/polling_station_assigned_event.rb', line 18 def polling_officer_zone_url url_helpers.decidim_votings_polling_officer_zone_url(host: organization.host) end |
#polling_station_name ⇒ Object
14 15 16 |
# File 'app/events/decidim/votings/polling_officers/polling_station_assigned_event.rb', line 14 def polling_station_name @polling_station_name ||= translated_attribute(polling_station.title) end |
#role ⇒ Object
22 23 24 |
# File 'app/events/decidim/votings/polling_officers/polling_station_assigned_event.rb', line 22 def role I18n.t(polling_officer.role, scope: "decidim.votings.polling_officers.roles") end |