Class: WoopleTheme::Dashboard::EssentialsSectionPresenter

Inherits:
SectionPresenter show all
Defined in:
app/presenters/woople_theme/dashboard/essentials_section_presenter.rb

Instance Method Summary collapse

Methods inherited from SectionPresenter

#render

Methods inherited from ExplicitDelegator

enforce_definitions, #enforced_methods, #ensure_defined, #initialize

Constructor Details

This class inherits a constructor from ExplicitDelegator

Instance Method Details

#render_completedObject



14
15
16
# File 'app/presenters/woople_theme/dashboard/essentials_section_presenter.rb', line 14

def render_completed
  yield if render?(@delegate.essentials_completed)
end

#render_exceptionsObject



18
19
20
# File 'app/presenters/woople_theme/dashboard/essentials_section_presenter.rb', line 18

def render_exceptions
  yield if render?(@delegate.essentials_exceptions)
end

#render_remainingObject



10
11
12
# File 'app/presenters/woople_theme/dashboard/essentials_section_presenter.rb', line 10

def render_remaining
  yield if render?(@delegate.essentials_remaining)
end