Class: ProfilePresenter

Inherits:
ExplicitDelegator show all
Defined in:
app/presenters/profile_presenter.rb

Constant Summary collapse

DEFAULT_IMAGE =
'woople-theme/missing-profile.png'
MISSING_WOOPLE_IMAGE =
'/assets/retina_thumb/missing.png'

Instance Method Summary collapse

Methods inherited from ExplicitDelegator

enforce_definitions, #enforced_methods, #ensure_defined, #initialize

Constructor Details

This class inherits a constructor from ExplicitDelegator

Instance Method Details

#imageObject



9
10
11
# File 'app/presenters/profile_presenter.rb', line 9

def image
  normalized(profile.image)
end

#sectionsObject



13
14
15
# File 'app/presenters/profile_presenter.rb', line 13

def sections
  @sections ||= ThemePresentation.wrap_collection(profile.sections, ProfileSectionPresenter)
end