Class: Decidim::Votings::PollingStationPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Decidim::Votings::PollingStationPresenter
- Includes:
- SanitizeHelper, TranslatableAttributes
- Defined in:
- app/presenters/decidim/votings/polling_station_presenter.rb
Overview
Decorator for polling station
Instance Method Summary collapse
Instance Method Details
#address ⇒ Object
21 22 23 24 |
# File 'app/presenters/decidim/votings/polling_station_presenter.rb', line 21 def address content = translated_attribute(polling_station.address) decidim_html_escape(content) end |
#polling_station ⇒ Object
12 13 14 |
# File 'app/presenters/decidim/votings/polling_station_presenter.rb', line 12 def polling_station __getobj__ end |
#title ⇒ Object
16 17 18 19 |
# File 'app/presenters/decidim/votings/polling_station_presenter.rb', line 16 def title content = translated_attribute(polling_station.title) decidim_html_escape(content) end |