NAME
Net::Gnip::FilterStream - represent a list of Gnip Filters
SYNOPIS
# Create a new stream
my $stream = Net::Gnip::FilterStream->new();
# ... or parse from XML
my $stream = Net::Gnip::FilterStream->parse($xml);
# set the filters
$stream->filters(@filters);
# get the filters
my @filters = $stream->filters;
# or use an iterator
while (my $filter = $stream->next) {
print $filter->name;
}
$stream->reset;
# ... now you can use it again
while (my $filter = $stream->next) {
print $filter->name;
}
METHODS
new
Create a new, empty stream
filters [filter[s]]
Get or set the filters