Simon Wistow > Net-Gnip-0.3 > Net::Gnip::PublisherStream

Download:
Net-Gnip-0.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

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

syntax highlighting: