class RSSable::Parsers::Items::Wordpress
Public Instance Methods
comments_count()
click to toggle source
Returns the comments count If the comments count node does not exist it returns nil
@return [Integer]
# File lib/rssable/parsers/items/wordpress.rb, line 18 def comments_count count = node_text(node.at_xpath("//slash:comments")) count.to_i unless count.nil? end