WWW::PGXN::Mirror - Mirror metadata fetched from PGXN
my $pgxn = WWW::PGXN->new( url => 'http://api.pgxn.org/' ); for my $mirror ($pgxn->mirrors) { say $mirror->url; }
This module represents PGXN mirror metadata fetched from PGXN>. It is not intended to be constructed directly, but via the "mirrors" in WWW::PGXN method of WWW::PGXN.
uri
my $uri = $mirror->uri; $mirror->uri($uri);
The URI of the mirror.
bandwidth
my $bandwidth = $mirror->bandwidth; $mirror->bandwidth($bandwidth);
The mirror's bandwidth.
frequency
my $frequency = $mirror->frequency; $mirror->frequency($frequency);
A description of how frequently the mirror updates.
location
my $location = $mirror->location; $mirror->location($location);
The location of the mirror.
notes
my $notes = $mirror->notes; $mirror->notes($notes);
Notes about the mirror.
organization
my $organization = $mirror->organization; $mirror->organization($organization);
The name of the organization hosting the mirror.
email
my $email = $mirror->email; $mirror->email($email);
The email address of the contact responsible for the mirror..
src
my $src = $mirror->src; $mirror->src($src);
The rsync URL that the mirror updates from.
rsync
my $rsync = $mirror->rsync; $mirror->rsync($rsync);
The rsync URL the mirror offers for other mirrors to update from. If false, the mirror provides no rsync URL of its own.
timezone
my $timezone = $mirror->timezone; $mirror->timezone($timezone);
The time zone in which the mirror lives.
WWW::PGXN
The main class to communicate with a PGXN mirror or API server.
This module is stored in an open GitHub repository. Feel free to fork and contribute!
Please file bug reports via GitHub Issues or by sending mail to bug-WWW-PGXN@rt.cpan.org.
David E. Wheeler <david@justatheory.com>
Copyright (c) 2011 David E. Wheeler. Some Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::PGXN, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::PGXN
CPAN shell
perl -MCPAN -e shell install WWW::PGXN
For more information on module installation, please visit the detailed CPAN module installation guide.