class FeedParser::Author

Attributes

avatar[RW]
email[RW]
line[RW]

todo: add role - why? why not?

e.g. add contributor (atom)
       or managingEditor (rss) or webMaster (rss) - why? why not??
name[RW]
text[RW]

todo: add role - why? why not?

e.g. add contributor (atom)
       or managingEditor (rss) or webMaster (rss) - why? why not??
uri[RW]
uri=[RW]
url[RW]

Public Instance Methods

avatar?() click to toggle source
# File lib/feedparser/author.rb, line 16
def avatar?()  @avatar.nil? == false;  end
email?() click to toggle source
# File lib/feedparser/author.rb, line 13
def email?()   @email.nil? == false;  end
to_s() click to toggle source
# File lib/feedparser/author.rb, line 27
def to_s
  ## note: to_s  - allows to use just author in templates
  ##    will by default return name if present or as fallback "unparsed" text line
   if @name    ## not blank
     @name
   else
     @text
   end
end