XML::OPDS::Acquisition - Acquisition elements for OPDS feeds
The following accessors are read-only and are meant to be passed as an hash to the new constructor.
new
Optional. The example specification uses uuid like urn:uuid:2853dacf-ed79-42f5-8e8a-a7bb3d1ae6a2. If not provided, the href (with the prefix if provided) will be used instead.
urn:uuid:2853dacf-ed79-42f5-8e8a-a7bb3d1ae6a2
href
If provided, every uri will have this string prepended, so you can just pass URIs like '/path/to/file' and have them consistently turned to 'http://myserver.org/path/to/file' if you set this to 'http://myserver.org'. See also XML::OPDS prefix method.
prefix
The URI of the resource. Required.
The title. Required.
An arrayref with the download files. The prefix is added if set.
The following attributes are optional and describe the publication.
An arrayref of either scalars with names, or hashrefs with name and uri as keys. uri is optional.
name
uri
Plain text.
HTML allowed.
The publication date.
A DateTime object with the time of the last update of the resource.
The uri of the thumbnail
The uri of the image
Usually they are for internal usage.
Return a list of XML::Atom::Person objects from the authors value.
authors
Return a list of XML::Atom::Link objects constructed from files, image, thumbnail, with the appropriate rel and type.
files
image
thumbnail
rel
type
Return the acquisition XML::Atom::Entry object.
To install XML::OPDS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::OPDS
CPAN shell
perl -MCPAN -e shell install XML::OPDS
For more information on module installation, please visit the detailed CPAN module installation guide.