logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

HTML::Microformats::Format::hEntry - an hAtom entry

Author

       Toby Inkster <tobyink@cpan.org>.

Bugs

       Please report any bugs to <http://rt.cpan.org/>.

Description

       HTML::Microformats::Format::hEntry is a helper module for HTML::Microformats::Format::hAtom.  This class
       is used to represent entries within feeds. Generally speaking, you want to use
       HTML::Microformats::Format::hAtom instead.

       HTML::Microformats::Format::hEntry inherits from HTML::Microformats::Format. See the base class
       definition for a description of property getter/setter methods, constructors, etc.

   AdditionalMethod
       •   "to_atom"

           This   method   exports   the  data  as  an  XML  file  containing  an  Atom  <entry>.   It  requires
           XML::Atom::FromOWL to work, and will throw an error at run-time if it's not available.

       •   "to_icalendar"

           This method exports the data in iCalendar format (as a VJOURNAL). It requires RDF::iCalendar to work,
           and will throw an error at run-time if it's not available.

Disclaimer Of Warranties

       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT  ANY  EXPRESS  OR  IMPLIED  WARRANTIES,  INCLUDING,  WITHOUT
       LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

perl v5.32.1                                       2021-09-12             HTML::Microform...:Format::hEntry(3pm)

Name

       HTML::Microformats::Format::hEntry - an hAtom entry

See Also

       HTML::Microformats::Format,            HTML::Microformats,             HTML::Microformats::Format::hAtom,
       HTML::Microformats::Format::hNews.

Synopsis

        use Data::Dumper;
        use HTML::Microformats::DocumentContext;
        use HTML::Microformats::Format::hAtom;

        my $context = HTML::Microformats::DocumentContext->new($dom, $uri);
        my @feeds   = HTML::Microformats::Format::hAtom->extract_all(
                          $dom->documentElement, $context);
        foreach my $feed (@feeds)
        {
          foreach my $entry ($feed->get_entry)
          {
            print $entry->get_link . "\n";
          }
        }

See Also