class RSSable::Parsers::Items::Wordpress

Public Instance Methods

author() click to toggle source

Returns the article author

@return [String]

# File lib/rssable/parsers/items/wordpress.rb, line 9
def author
  creator_node = node.elements.find { |c| c.name == "creator" }
  node_text(creator_node)
end
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