Class: Tramway::Event::PartakingFeatureDecorator

Inherits:
Landing::BlockTypes::FeaturesDecorator
  • Object
show all
Defined in:
app/decorators/tramway/event/partaking_feature_decorator.rb

Instance Method Summary collapse

Instance Method Details

#full_textObject



8
9
10
# File 'app/decorators/tramway/event/partaking_feature_decorator.rb', line 8

def full_text
  object.person.description
end

#imageObject



16
17
18
# File 'app/decorators/tramway/event/partaking_feature_decorator.rb', line 16

def image
  object.person.photo.small.url
end

#textObject



4
5
6
# File 'app/decorators/tramway/event/partaking_feature_decorator.rb', line 4

def text
  object.position&.html_safe
end

#titleObject



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