Class: RSSable::Parsers::Items::Medium
- Defined in:
- lib/rssable/parsers/items/medium.rb
Instance Method Summary collapse
-
#author ⇒ String
Returns the article author.
-
#description ⇒ String
Returns the article description.
Methods inherited from Base
#comments_count, #initialize, #link, #published_at, #tags, #title
Constructor Details
This class inherits a constructor from RSSable::Parsers::Items::Base
Instance Method Details
#author ⇒ String
Returns the article author
9 10 11 12 |
# File 'lib/rssable/parsers/items/medium.rb', line 9 def creator_node = node.elements.find { |c| c.name == "creator" } node_text(creator_node) end |
#description ⇒ String
Returns the article description
17 18 19 |
# File 'lib/rssable/parsers/items/medium.rb', line 17 def description node_text(node.at_xpath("//content:encoded")) end |