Class: Decidim::Votings::PollingStationPresenter

Inherits:
SimpleDelegator
  • Object
show all
Includes:
SanitizeHelper, TranslatableAttributes
Defined in:
decidim-elections/app/presenters/decidim/votings/polling_station_presenter.rb

Overview

Decorator for polling station

Instance Method Summary collapse

Methods included from TranslatableAttributes

#default_locale?

Methods included from SanitizeHelper

#decidim_html_escape, #decidim_sanitize, #decidim_sanitize_editor, #decidim_sanitize_newsletter, #decidim_url_escape, included

Instance Method Details

#addressObject


21
22
23
24
# File 'decidim-elections/app/presenters/decidim/votings/polling_station_presenter.rb', line 21

def address
  content = translated_attribute(polling_station.address)
  decidim_html_escape(content)
end

#polling_stationObject


12
13
14
# File 'decidim-elections/app/presenters/decidim/votings/polling_station_presenter.rb', line 12

def polling_station
  __getobj__
end

#titleObject


16
17
18
19
# File 'decidim-elections/app/presenters/decidim/votings/polling_station_presenter.rb', line 16

def title
  content = translated_attribute(polling_station.title)
  decidim_html_escape(content)
end