Class: Tramway::Event::SectionFeatureDecorator
- Inherits:
-
Landing::BlockTypes::FeaturesDecorator
- Object
- Landing::BlockTypes::FeaturesDecorator
- Tramway::Event::SectionFeatureDecorator
- Defined in:
- app/decorators/tramway/event/section_feature_decorator.rb
Instance Method Summary collapse
Instance Method Details
#anchor ⇒ Object
14 15 16 |
# File 'app/decorators/tramway/event/section_feature_decorator.rb', line 14 def anchor "section-#{object.id}" end |
#image ⇒ Object
10 11 12 |
# File 'app/decorators/tramway/event/section_feature_decorator.rb', line 10 def image object.photo.small.url end |
#text ⇒ Object
6 7 8 |
# File 'app/decorators/tramway/event/section_feature_decorator.rb', line 6 def text object.description.scan(%r{<strong>.*?</strong>}).join(' ') end |