Class: Tramway::Event::PartakingFeatureDecorator
- Inherits:
-
Landing::BlockTypes::FeaturesDecorator
- Object
- Landing::BlockTypes::FeaturesDecorator
- Tramway::Event::PartakingFeatureDecorator
- Defined in:
- app/decorators/tramway/event/partaking_feature_decorator.rb
Instance Method Summary collapse
Instance Method Details
#full_text ⇒ Object
8 9 10 |
# File 'app/decorators/tramway/event/partaking_feature_decorator.rb', line 8 def full_text object.person.description end |
#image ⇒ Object
16 17 18 |
# File 'app/decorators/tramway/event/partaking_feature_decorator.rb', line 16 def image object.person.photo.small.url end |
#text ⇒ Object
4 5 6 |
# File 'app/decorators/tramway/event/partaking_feature_decorator.rb', line 4 def text object.position&.html_safe end |
#title ⇒ Object
12 13 14 |
# File 'app/decorators/tramway/event/partaking_feature_decorator.rb', line 12 def title "#{object.person.first_name} #{object.person.last_name}" end |