Ubic::Result::Class - ubic result object
version 1.49
use Ubic::Result qw(result); my $result = result("already running"); print $result->status; # running print "$result"; # already running
Ubic::Result::Class instances represent service operation results.
Many service actions can *do* something and *result* in something. So, this class dissects service operation into action() and status(). For example, "already running" result means that current service status is "running" and action is "none".
action()
status()
Also, it carry custom comment and serialize result into common stringified form.
Ubic::Result::Class instances are usually created via result() function from Ubic::Result package.
result()
Possible statuses:
Actions are something that was done which resulted in current status by invoked method.
Possible actions:
Constructor.
Get status, see above for possible values.
Get action.
Get string representation.
Ubic::Result - service action's result.
Vyacheslav Matyukhin <mmcleric@yandex-team.ru>
This software is copyright (c) 2013 by Yandex LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Ubic, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ubic
CPAN shell
perl -MCPAN -e shell install Ubic
For more information on module installation, please visit the detailed CPAN module installation guide.