WebApi/Dialog.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 96.7% 30 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« WebApi/Oauth/V2.pm ↑ Summary WebApi/Api.pm »
1 package WebService::Slack::WebApi::Dialog;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use feature qw/state/;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use parent 'WebService::Slack::WebApi::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 ▶use JSON;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 21 ▶sub open {
Subroutine open: called CC=1 SCAR=0.0
Pod undocumented
12 21 state $rule = Data::Validator->new(
13 dialog => { isa => 'HashRef', optional => 0 },
14 trigger_id => { isa => 'Str', optional => 0, },
15 )->with('Method', 'AllowExtra');
16 21 my ($self, $args, %extra) = $rule->validate(@_);
17  
18 21 $args->{dialog} = encode_json $args->{dialog};
19 21 return $self->request('open', { %$args, %extra });
20 }
21  
22 3 1;
« WebApi/Oauth/V2.pm ↑ Summary WebApi/Api.pm »