class AtomFeed::AtomPerson
Public Class Methods
new(node)
click to toggle source
Initializes the person.
# File lib/atom_feed/atom_person.rb, line 4 def initialize(node) @node = node end
Public Instance Methods
email()
click to toggle source
Email address of the person (optional)
# File lib/atom_feed/atom_person.rb, line 19 def email @node.at_xpath("atom:email", ::AtomFeed::NS).try(:content) end
name()
click to toggle source
Human readable name of the person (required)
# File lib/atom_feed/atom_person.rb, line 9 def name @node.at_xpath("atom:name", ::AtomFeed::NS).content end
uri()
click to toggle source
Home page for the person (optional)
# File lib/atom_feed/atom_person.rb, line 14 def uri @node.at_xpath("atom:uri", ::AtomFeed::NS).try(:content) end