Class: MrVideo::Episodes::ShowPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/mr_video/episodes/show_presenter.rb

Instance Method Summary collapse

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

#contentObject



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_typeObject



19
20
21
# File 'app/presenters/mr_video/episodes/show_presenter.rb', line 19

def content_type
  episode.content_type
end