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

Download:
Net-Gnip-0.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Net::Gnip::Filter - a GNIP filter

SYNOPSIS ^

    my @rules  = ( { type => 'actor', value => 'joe' } );

    my $filter = Net::Gnip::Filter->new($name, $full_data, [@rules], %opts);
    my $name   = $filter->name;
    my $full   = $filter->full_data;
    my @rules  = $filter->rules;
    my %what   = $filter->what;

    $filter->what( url => $url );
    $filter->what( jid => $jid );

METHODS ^

new <name> <full data> <rule[s]> [opt[s]]

Create a new filter.

name [name]

Get or sets the name.

full_data [full]

Get or set whether we want full data

rules [rule[s]]

Get or set the rules.

Rules should be hashrefs with a type key and value key.

The type key should be one of

    actor
    tag
    to
    regarding
    source

what <type> <value>

Get or set what type is needed.

Type should be one of

    postUrl
    jid

parse <xml>

Parse some xml into an activity.

as_xml

Return the activity as xml

syntax highlighting: