Class: PageHeaderPresenter

Inherits:
ExplicitDelegator show all
Includes:
ContentImage
Defined in:
app/presenters/page_header_presenter.rb

Constant Summary

Constants included from ContentImage

ContentImage::DEFAULT_IMAGE, ContentImage::MISSING_WOOPLE_IMAGE

Instance Method Summary collapse

Methods included from ContentImage

#image

Methods inherited from ExplicitDelegator

enforce_definitions, #enforced_methods, #ensure_defined, #initialize

Constructor Details

This class inherits a constructor from ExplicitDelegator

Instance Method Details

#completed_classObject



17
18
19
# File 'app/presenters/page_header_presenter.rb', line 17

def completed_class
  'completed' if @delegate.completed?
end

#image_classObject



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

def image_class
  'page-header-with-image' if has_image?
end

#titleObject



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

def title
  name || @delegate.title
end