Class: Omnom::Source::Github::BlogSection

Inherits:
Blog show all
Defined in:
lib/omnom/source/github/blog_section.rb

Instance Attribute Summary

Attributes inherited from Base

#config, #feed_key, #key, #options, #settings, #source_id

Instance Method Summary collapse

Methods inherited from Blog

#author_url

Methods inherited from Atom

#author_name, #author_url, #description, #get_raw_posts, #guid, #post_attributes, #published_at, #tags, #thumbnail_url, #title, #url

Methods inherited from Base

config, configure, cron, every, feed_url, full_key, guid_namespace, icon, icon_from_url, inherited, #initialize, key, required_config, required_options, #update, url

Methods included from ParserMethods

#html_to_text

Constructor Details

This class inherits a constructor from Omnom::Source::Base

Instance Method Details

#after_initializeObject



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/omnom/source/github/blog_section.rb', line 11

def after_initialize
  sections = {
    broadcasts: 'https://github.com/blog/broadcasts.atom',
    meetups: 'https://github.com/blog/drinkup.atom',
    enterprise: 'https://github.com/blog/enterprise.atom',
    new_features: 'https://github.com/blog/ship.atom',
    engineering: 'https://github.com/blog/engineering.atom',
    watercooler: 'https://github.com/blog/watercooler.atom'
  }
  @url = sections[@options[:section]]
end