Class: Omnom::Source::TheNextWeb::Default

Inherits:
Base
  • Object
show all
Includes:
Omnom::SourceParsers::Feedburner
Defined in:
lib/omnom/source/the_next_web/default.rb

Instance Attribute Summary

Attributes inherited from Base

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

Instance Method Summary collapse

Methods included from Omnom::SourceParsers::Feedburner

#get_raw_posts

Methods inherited from Base

#after_initialize, 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

#post_attributes(node) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/omnom/source/the_next_web/default.rb', line 11

def post_attributes(node)
  attributes = super
  if attributes[:description].present?
    attributes[:description] = html_to_text(attributes[:description])
    attributes[:description].sub!(/\s+Keep reading .\s*$/, '')
  end
  attributes
end