Backbone/Service/Role/Sender.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Backbone/SendPolicy.pm ↑ Summary Backbone/Service/Role/Service.pm »
1 package Bot::Backbone::Service::Role::Sender;
2 4 $Bot::Backbone::Service::Role::Sender::VERSION = '0.142220';
3 4 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 # ABSTRACT: Marks a service as one that may send messages
6  
7  
8 4 requires qw( send_message send_reply );
9  
10 4 1;
11  
12 __END__
13  
14 =pod
15  
16 =encoding UTF-8
17  
18 =head1 NAME
19  
20 Bot::Backbone::Service::Role::Sender - Marks a service as one that may send messages
21  
22 =head1 VERSION
23  
24 version 0.142220
25  
26 =head1 DESCRIPTION
27  
28 A sender is a service that provides C<send_message> and C<send_reply> methods.
29  
30 =head1 REQUIRED METHODS
31  
32 =head2 send_reply
33  
34 $chat->send_reply($message, \%options);
35  
36 This is often just a wrapper provided around C<send_message>. The first
37 argument is the original L<Bot::Backbone::Message> that this is in reply to.
38  
39 The second argument is the options to describe the reply being sent.
40  
41 =head2 send_message
42  
43 $chat->send_message(%options);
44  
45 The options describe the to send.
46  
47 =head1 AUTHOR
48  
49 Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
50  
51 =head1 COPYRIGHT AND LICENSE
52  
53 This software is copyright (c) 2014 by Qubling Software LLC.
54  
55 This is free software; you can redistribute it and/or modify it under
56 the same terms as the Perl 5 programming language system itself.
57  
58 =cut
« Backbone/SendPolicy.pm ↑ Summary Backbone/Service/Role/Service.pm »