NAME
BusyBird::Input::Generator - status generator
SYNOPSIS
use BusyBird::Input::Generator;
my $gen = BusyBird::Input::Generator->new(screen_name => "toshio_ito");
my $status = $gen->generate(text => "Hello, world!");
DESCRIPTION
BusyBird::Input::Generator generates status objects. It is useful for injecting arbitrary messages into your timelines, or just for debugging purposes.
Features
It automatically generates and sets the IDs of generated statuses.
It automatically sets the timestamps of generated statuses.
CLASS METHODS
$gen = BusyBird::Input::Generator->new(%args)
The constructor.
Fields in %args are:
screen_name=> STR (optional, default: "")-
The
user.screen_namefield of the statuses to be generated.
OBJECT METHODS
$status = $gen->generate(%args)
Generates a status object. See BusyBird::Manual::Status for format of the status object.
Fields in %args are:
text=> STR (optional, default: "")-
The
textfield of the status. It must be a text string, not a binary (octet) string. level=> INT (optional, default: 0)-
The
busybird.levelfield of the status.
AUTHOR
Toshio Ito <toshioito [at] cpan.org>