« blib/lib/Beekeeper/JSONRPC/Notification.pm
↑ Summary
blib/lib/Beekeeper/Worker/Extension/RemoteSession.pm »
| 1 | package Beekeeper::JSONRPC::Response; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | our $VERSION = '0.09'; | ||
| 7 | |||
| 8 | |||
| 9 | sub new { | ||
| 10 | my $class = shift; | ||
| 11 | |||
| 12 | bless { | ||
| 13 | jsonrpc => '2.0', | ||
| 14 | result => undef, | ||
| 15 | id => undef, | ||
| 16 | @_ | ||
| 17 | }, $class; | ||
| 18 | } | ||
| 19 | |||
| 20 | sub result { $_[0]->{result} } | ||
| 21 | sub id { $_[0]->{id} } | ||
| 22 | |||
| 23 | sub success { 1 } | ||
| 24 | |||
| 25 | 1; | ||
| 26 | |||
| 27 | __END__ |