Syndicate::Atom
NAME
Syndicate::Atom - Atom 1.0 feed
SYNOPSIS
my $feed = Syndicate::Atom.new($xml-string);
my $feed = Syndicate::Atom.new(:title("My Feed"), :id("urn:uuid:..."), ...);
say ~$feed;
DESCRIPTION
Parses and generates Atom 1.0 feeds. Does Syndicate::Feed.
ATTRIBUTES
$.title,$.link,$.description- from Feed role (description ā subtitle)$.generator,$.language- from Feed role$.id- Atom feed ID$.subtitle- Feed subtitle%.author-detail- Author hash (name, email, uri)@.categories- Category terms$.updated- Last updated timestamp$.rights- Rights/license text$.icon- Feed icon URL$.logo- Feed logo URL@.contributors- Array of contributor hashes@.link-self- Self link hashes (href, type)@.link-alternate- Alternate link hashes (href, type)
updated DIVERGENCE
Atom requires an updated timestamp, so XML()/Str() die when neither
the feed nor any entry carries one. to-hash() is intentionally lenient for
inspection: it simply omits the updated key in that case rather than
throwing, mirroring the computed value (newest entry timestamp) when one exists.