| 1 | #ABSTRACT: Abstract interface for sitemap indexes' Sitemap classes | ||
| 2 | 10 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 10 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | package WWW::SitemapIndex::XML::Sitemap::Interface; | ||
| 5 | BEGIN { | ||
| 6 | 10 | ▶ | $WWW::SitemapIndex::XML::Sitemap::Interface::AUTHORITY = 'cpan:AJGB'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | } | ||
| 8 | 10 | $WWW::SitemapIndex::XML::Sitemap::Interface::VERSION = '2.01'; | |
| 9 | 10 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | 10 | requires qw( | |
| 12 | loc lastmod as_xml | ||
| 13 | ); | ||
| 14 | |||
| 15 | |||
| 16 | 10 | ▶ | no Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | 10 | 1; | |
| 19 | |||
| 20 | __END__ | ||
| 21 | |||
| 22 | =pod | ||
| 23 | |||
| 24 | =encoding UTF-8 | ||
| 25 | |||
| 26 | =head1 NAME | ||
| 27 | |||
| 28 | WWW::SitemapIndex::XML::Sitemap::Interface - Abstract interface for sitemap indexes' Sitemap classes | ||
| 29 | |||
| 30 | =head1 VERSION | ||
| 31 | |||
| 32 | version 2.01 | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | package My::SitemapIndex::Sitemap; | ||
| 37 | use Moose; | ||
| 38 | |||
| 39 | has [qw( loc lastmod as_xml )] => ( | ||
| 40 | is => 'rw', | ||
| 41 | isa => 'Str', | ||
| 42 | ); | ||
| 43 | |||
| 44 | with 'WWW::SitemapIndex::XML::Sitemap::Interface'; | ||
| 45 | |||
| 46 | =head1 DESCRIPTION | ||
| 47 | |||
| 48 | Abstract interface for Sitemap elements added to sitemap index. | ||
| 49 | |||
| 50 | =head1 ABSTRACT METHODS | ||
| 51 | |||
| 52 | =head2 loc | ||
| 53 | |||
| 54 | URL of the sitemap. | ||
| 55 | |||
| 56 | =head2 lastmod | ||
| 57 | |||
| 58 | The date of last modification of the sitemap. | ||
| 59 | |||
| 60 | =head2 as_xml | ||
| 61 | |||
| 62 | XML representing the C<E<lt>sitemapE<gt>> entry in the sitemap index. | ||
| 63 | |||
| 64 | =head1 AUTHOR | ||
| 65 | |||
| 66 | Alex J. G. Burzyński <ajgb@cpan.org> | ||
| 67 | |||
| 68 | =head1 COPYRIGHT AND LICENSE | ||
| 69 | |||
| 70 | This software is copyright (c) 2014 by Alex J. G. Burzyński <ajgb@cpan.org>. | ||
| 71 | |||
| 72 | This is free software; you can redistribute it and/or modify it under | ||
| 73 | the same terms as the Perl 5 programming language system itself. | ||
| 74 | |||
| 75 | =cut | ||