Class: Decidim::Votings::PollingStationPresenter

Inherits:
SimpleDelegator
  • Object
show all
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

#addressObject



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_stationObject



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

def polling_station
  __getobj__
end

#titleObject



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