Storm/Tuple.pm

filter: Statementstmt 91.3% 21 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 83.3% 5 / 6 Podpod 0.0% 0 / 1 totaltotal 86.6% 26 / 30 CC 1 SCAR 1.5
CC
1
Cov
91%
TO_JSON
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Storm.pm ↑ Summary
1 # ABSTRACT: Storm's primitive data type passed around via streams.
2  
3 package IO::Storm::Tuple;
4 4 $IO::Storm::Tuple::VERSION = '0.15';
5 # Imports
6 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 ▶use v5.10;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 # Setup Moo for object-oriented niceties
11 4 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 4 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 4 has 'id' => ( is => 'rw' );
15  
16 4 has 'component' => ( is => 'rw' );
17  
18 4 has 'stream' => ( is => 'rw' );
19  
20 4 has 'task' => ( is => 'rw' );
21  
22 4 has 'values' => ( is => 'rw' );
23  
24 sub TO_JSON {
25 0 ▶ my ($self) = @_;
Subroutine TO_JSON: not called CC=1 SCAR=6.9
Pod undocumented
26 return {
27 0 id => $self->id,
28 component => $self->component,
29 stream => $self->stream,
30 task => $self->task,
31 values => $self->values
32 };
33 }
34  
35 4 1;
36  
37 __END__
38  
39 =pod
40  
41 =head1 NAME
42  
43 IO::Storm::Tuple - Storm's primitive data type passed around via streams.
44  
45 =head1 VERSION
46  
47 version 0.15
48  
49 =head1 NAME
50  
51 IO::Storm::Tuple - Storm's primitive data type passed around via streams.
52  
53 =head1 VERSION
54  
55 version 0.06
56  
57 =head1 AUTHORS
58  
59 =over 4
60  
61 =item *
62  
63 Cory G Watson <gphat@cpan.org>
64  
65 =item *
66  
67 Dan Blanchard <dblanchard@ets.org>
68  
69 =back
70  
71 =head1 COPYRIGHT AND LICENSE
72  
73 This software is copyright (c) 2014 by Infinity Interactive, Inc.
74  
75 This is free software; you can redistribute it and/or modify it under
76 the same terms as the Perl 5 programming language system itself.
77  
78 =head1 AUTHORS
79  
80 =over 4
81  
82 =item *
83  
84 Dan Blanchard <dblanchard@ets.org>
85  
86 =item *
87  
88 Cory G Watson <gphat@cpan.org>
89  
90 =back
91  
92 =head1 COPYRIGHT AND LICENSE
93  
94 This software is copyright (c) 2014 by Educational Testing Service.
95  
96 This is free software; you can redistribute it and/or modify it under
97 the same terms as the Perl 5 programming language system itself.
98  
99 =cut
« Storm.pm ↑ Summary