class RSSable::Parsers::Items::Base
Attributes
node[R]
Public Class Methods
new(node)
click to toggle source
# File lib/rssable/parsers/items/base.rb, line 5 def initialize(node) @node = node end
Public Instance Methods
comments_count()
click to toggle source
Returns nil by the default
@return [NilClass]
# File lib/rssable/parsers/items/base.rb, line 54 def comments_count; end
description()
click to toggle source
Returns the item description
@return [String]
# File lib/rssable/parsers/items/base.rb, line 33 def description node_text(node.at("description")) end
link()
click to toggle source
Returns the item link
@return [String]
# File lib/rssable/parsers/items/base.rb, line 19 def link node_text(node.at("link")) end
published_at()
click to toggle source
Returns the item publication date
@return [String]
# File lib/rssable/parsers/items/base.rb, line 26 def published_at node_text(node.at("pubDate")) end
title()
click to toggle source
Returns the item title
@return [String]
# File lib/rssable/parsers/items/base.rb, line 12 def title node_text(node.at("title")) end
Private Instance Methods
node_text(node)
click to toggle source
# File lib/rssable/parsers/items/base.rb, line 60 def node_text(node) node.text unless node.nil? end