Class: RSSable::Parsers::Items::Blogger
- Defined in:
- lib/rssable/parsers/items/blogger.rb
Instance Method Summary collapse
-
#comments_count ⇒ Integer
Returns the comments count If the comments count node does not exist it returns nil.
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_count ⇒ Integer
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 |