Class: UpdatePodcastJob

Inherits:
UpdateBlogJob show all
Defined in:
app/jobs/update_podcast_job.rb

Defined Under Namespace

Modules: PodcastEntry

Instance Attribute Summary

Attributes inherited from UpdateBlogJob

#blog

Instance Method Summary collapse

Methods inherited from UpdateBlogJob

#caps?, #need_check?, #perform, #url_after_redirects

Instance Method Details

#entry_to_post(entry) ⇒ Object


12
13
14
15
16
17
18
19
# File 'app/jobs/update_podcast_job.rb', line 12

def entry_to_post(entry)
  entry.singleton_class.send(:include, PodcastEntry)

  post = Episode.new super.attributes.merge(type: 'Episode')
  post.enclosures = entry.enclosures

  post
end