Class: RSSable::Parsers::Items::Blogger

Inherits:
Base
  • Object
show all
Defined in:
lib/rssable/parsers/items/blogger.rb

Instance Method Summary collapse

Methods inherited from Base

#author, #description, #initialize, #link, #published_at, #tags, #title

Constructor Details

This class inherits a constructor from RSSable::Parsers::Items::Base

Instance Method Details

#comments_countInteger

Returns the comments count If the comments count node does not exist it returns nil



10
11
12
13
# File 'lib/rssable/parsers/items/blogger.rb', line 10

def comments_count
  count = node_text(node.at_xpath("//thr:total"))
  count.to_i unless count.nil?
end