The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Babble::DataSource - Base data source class for Babble

DESCRIPTION

Babble::DataSource is a base class, a class which should never ever be used directly by applications (as it does nothing useful).

This class is merely provided to be a base to inherit from. All descendants must implement at least the methods this class implements.

METHODS

The following methods are required to be implemented by all Babble::DataSource descendants:

new(%params)

Obviously, this creates a new object. The new object should in all cases, call SUPER::new, as to get their params stored. Then, it can go an interpret them as it sees fit.

collect($babble)

This method does whatever is necessary to collect the data from the source, and then return a Babble::Document::Collection object.

The only paramater passed, is a Babble object reference.

AUTHOR

Gergely Nagy, algernon@bonehunter.rulez.org

Bugs should be reported at http://bugs.bonehunter.rulez.org/babble.

SEE ALSO

Babble::Document::Collection, Babble::DataSource::HTML, Babble::DataSource::FlatFile