Class: MrVideo::Episodes::ShowPresenter
- Inherits:
-
Object
- Object
- MrVideo::Episodes::ShowPresenter
- Defined in:
- app/presenters/mr_video/episodes/show_presenter.rb
Instance Method Summary collapse
- #content ⇒ Object
- #content_type ⇒ Object
-
#initialize(context) ⇒ ShowPresenter
constructor
A new instance of ShowPresenter.
Constructor Details
#initialize(context) ⇒ ShowPresenter
7 8 9 |
# File 'app/presenters/mr_video/episodes/show_presenter.rb', line 7 def initialize(context) @context = context end |
Instance Method Details
#content ⇒ Object
11 12 13 14 15 16 17 |
# File 'app/presenters/mr_video/episodes/show_presenter.rb', line 11 def content if fix_relative_links? content_with_relative_links_fixed else raw_content end end |
#content_type ⇒ Object
19 20 21 |
# File 'app/presenters/mr_video/episodes/show_presenter.rb', line 19 def content_type episode.content_type end |