NAME

App::Zapzi::Roles::Fetcher - role definition for fetcher modules

VERSION

version 0.005

DESCRIPTION

This defines the fetcher role for Zapzi. Fetchers take a source, such as a filename or URL, and return raw article text.

ATTRIBUTES

source

Pass in the source of the article - either a filename or a URL.

text

Holds the raw text of the article

content_type

MIME content type for text.

error

Holds details of any errors encountered while retrieving the article; will be blank if no errors.

REQUIRED METHODS

name

Name of fetcher visible to user.

handles($source)

Returns true if this implementation handles the specified article source

fetch

Fetch the article

AUTHOR

Rupert Lane <rupert@rupert-lane.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Rupert Lane.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.