Kent Fredric > Gentoo-Perl-Distmap > Gentoo::Perl::Distmap::RecordSet

Download:
Gentoo-Perl-Distmap-0.2.0.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: v0.2.0   Source  

NAME ^

Gentoo::Perl::Distmap::RecordSet - A collection of Record objects representing versions in >1 repositories.

VERSION ^

version 0.2.0

ATTRIBUTES ^

records

METHODS ^

records_with_versions

has_versions

        if( $instance->has_versions() ) {

        }

is_multi_repository

        if ( $instance->is_multi_repository() ){

        }

in_repository

        if ( my @records = $instance->in_repository('gentoo') ) {
                /* records from gentoo only */
        }

find_or_create_record

    my $record = $recordset->find_or_create_record(
        category   => foo  =>,
        package    => bar  =>,
        repository => quux =>,
    );

add_version

        $instance->add_version(
                category   => 'gentoo-category',
                package    => 'gentoo-package',
                version    => 'gentoo-version',
                repository => 'gentoo-repository',
        );

to_rec

        my $datastructure = $instance->to_rec

CLASS METHODS ^

from_rec

        my $instance = G:P:D:RecordSet->from_rec( $datastructure );

ATTRIBUTE METHODS ^

records -> records

all_records -> records.elements

grep_reords -> records.grep

AUTHOR ^

Kent Fredric <kentfredric@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Kent Fredric <kentfredric@gmail.com>.

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

syntax highlighting: