Metaweb::Result - Result set from a Metaweb query


Metaweb documentation Contained in the Metaweb distribution.

Index


Code Index:

NAME

Top

Metaweb::Result - Result set from a Metaweb query

SYNOPSIS

Top

    my $mw = Metaweb->new($args);
    $mw->login();

    my $result = $mw->query($name, $query_hash);
    # $result isa Metaweb::Result

    use Data::Dumper;
    print Dumper $result;

DESCRIPTION

Top

This class doesn't do much of anything yet. It just gives you an object you can treat as a hashref.

new()

Simple constructor. Takes a result as a perl data structure and basically just turns it into a Metaweb::Result object.

SEE ALSO

Top

Metaweb


Metaweb documentation Contained in the Metaweb distribution.
package Metaweb::Result;

use strict;
use warnings;

sub new {
    my ($class, $result) = @_;
    my $self = { content => $result };
    bless $self, $class;
    return $self;
}

1;