Class: ContentItemPresenter
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- ContentItemPresenter
show all
- Includes:
- ContentImage
- Defined in:
- app/presenters/content_item_presenter.rb
Constant Summary
ContentImage::DEFAULT_IMAGE, ContentImage::MISSING_WOOPLE_IMAGE
Instance Method Summary
collapse
#image
Instance Method Details
7
8
9
|
# File 'app/presenters/content_item_presenter.rb', line 7
def certification_metadata(&block)
yield(source.certification_metadata) if source.certification_metadata.present?
end
|
#completed_class ⇒ Object
11
12
13
|
# File 'app/presenters/content_item_presenter.rb', line 11
def completed_class
'completed' if source.completed?
end
|
#source ⇒ Object
15
16
17
|
# File 'app/presenters/content_item_presenter.rb', line 15
def source
__getobj__
end
|