Name
WWW::PGXN::Mirror - Mirror metadata fetched from PGXN
Synopsis
my $pgxn = WWW::PGXN->new( url => 'https://api.pgxn.org/' );
for my $mirror ($pgxn->mirrors) {
say $mirror->url;
}
Description
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.
Interface
Instance Accessors
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.
See Also
-
The main class to communicate with a PGXN mirror or API server.
Support
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.
Author
David E. Wheeler <david@justatheory.com>
Copyright and License
Copyright (c) 2011-2024 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.