Class: WoopleTheme::Dashboard::EssentialCompletedPresenter

Inherits:
ContentItemPresenter show all
Defined in:
app/presenters/woople_theme/dashboard/essential_completed_presenter.rb

Constant Summary

Constants included from ContentImage

ContentImage::DEFAULT_IMAGE, ContentImage::MISSING_WOOPLE_IMAGE

Instance Method Summary collapse

Methods inherited from ContentItemPresenter

#completed_class, #render_elective_points

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

#render_certification_metadata(&block) ⇒ Object



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

def (&block)
end

#render_completed_on {|formatted_date| ... } ⇒ Object

Yields:

  • (formatted_date)


20
21
22
# File 'app/presenters/woople_theme/dashboard/essential_completed_presenter.rb', line 20

def render_completed_on(&block)
  yield(formatted_date) unless source.completed_on.nil?
end

#render_essential_duration {|source.time_total| ... } ⇒ Object

Yields:

  • (source.time_total)


24
25
26
# File 'app/presenters/woople_theme/dashboard/essential_completed_presenter.rb', line 24

def render_essential_duration(&block)
  yield(source.time_total)
end

#render_popularity(&block) ⇒ Object



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

def render_popularity(&block)
end

#render_progress_bar(&block) ⇒ Object



17
18
# File 'app/presenters/woople_theme/dashboard/essential_completed_presenter.rb', line 17

def render_progress_bar(&block)
end

#render_time_remaining(&block) ⇒ Object



8
9
# File 'app/presenters/woople_theme/dashboard/essential_completed_presenter.rb', line 8

def render_time_remaining(&block)
end