File Coverage

blib/lib/Slack/BlockKit/Block/Divider.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Slack::BlockKit::Block::Divider 0.005;
2             # ABSTRACT: a Block Kit "divider" block
3 4     4   30 use Moose;
  4         11  
  4         37  
4 4     4   36080 use MooseX::StrictConstructor;
  4         8  
  4         42  
5              
6             with 'Slack::BlockKit::Role::Block';
7              
8             #pod =head1 OVERVIEW
9             #pod
10             #pod This is possibly the simplest block in Block Kit. It's a divider. It has no
11             #pod attributes other than its type and optionally its block id.
12             #pod
13             #pod =cut
14              
15 4     4   16058 use v5.36.0;
  4         37  
16              
17             sub as_struct ($self) {
18             return {
19             type => 'divider',
20             };
21             }
22              
23 4     4   30 no Moose;
  4         7  
  4         26  
24             __PACKAGE__->meta->make_immutable;
25              
26             __END__
27              
28             =pod
29              
30             =encoding UTF-8
31              
32             =head1 NAME
33              
34             Slack::BlockKit::Block::Divider - a Block Kit "divider" block
35              
36             =head1 VERSION
37              
38             version 0.005
39              
40             =head1 OVERVIEW
41              
42             This is possibly the simplest block in Block Kit. It's a divider. It has no
43             attributes other than its type and optionally its block id.
44              
45             =head1 PERL VERSION
46              
47             This module should work on any version of perl still receiving updates from
48             the Perl 5 Porters. This means it should work on any version of perl
49             released in the last two to three years. (That is, if the most recently
50             released version is v5.40, then this module should work on both v5.40 and
51             v5.38.)
52              
53             Although it may work on older versions of perl, no guarantee is made that the
54             minimum required version will not be increased. The version may be increased
55             for any reason, and there is no promise that patches will be accepted to
56             lower the minimum required perl.
57              
58             =head1 AUTHOR
59              
60             Ricardo SIGNES <cpan@semiotic.systems>
61              
62             =head1 COPYRIGHT AND LICENSE
63              
64             This software is copyright (c) 2024 by Ricardo SIGNES.
65              
66             This is free software; you can redistribute it and/or modify it under
67             the same terms as the Perl 5 programming language system itself.
68              
69             =cut