The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Gnip::PublisherStream - represent a list of Gnip Publisher

SYNOPIS

    # Create a new stream    
    my $stream = Net::Gnip::PublisherStream->new();

    # ... or parse from XML
    my $stream = Net::Gnip::FilterStream->parse($xml);

    # set the publishers
    $stream->publishers(@publisher);
    
    # get the publishers
    my @publishers = $stream->publishers;

    # or use an iterator
    while (my $publisher = $stream->next) {
        print $publisher->name;
    }

    $stream->reset;

    # ... now you can use it again
    while (my $publisher = $stream->next) {
        print $publisher->name;
    }

METHODS

new

Create a new, empty stream

publishers [publisher[s]]

Get or set the publishers