Class: Decidim::Votings::PollingOfficers::PollingStationAssignedEvent

Inherits:
Events::SimpleEvent
  • Object
show all
Defined in:
app/events/decidim/votings/polling_officers/polling_station_assigned_event.rb

Instance Method Summary collapse

Instance Method Details

#polling_officer_zone_urlObject



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_nameObject



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

#roleObject



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