Class: AtomFeed::AtomPerson
Instance Method Summary collapse
-
#email ⇒ Object
Email address of the person (optional).
-
#initialize(node) ⇒ AtomPerson
constructor
Initializes the person.
-
#name ⇒ Object
Human readable name of the person (required).
-
#uri ⇒ Object
Home page for the person (optional).
Constructor Details
#initialize(node) ⇒ AtomPerson
Initializes the person.
4 5 6 |
# File 'lib/atom_feed/atom_person.rb', line 4 def initialize(node) @node = node end |
Instance Method Details
#email ⇒ Object
Email address of the person (optional)
19 20 21 |
# File 'lib/atom_feed/atom_person.rb', line 19 def email @node.at_xpath("atom:email", ::AtomFeed::NS).try(:content) end |