Chart/Plotly/Adapter.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
stringify
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Chart::Plotly::Adapter;
2  
3 use strict;
4 use warnings;
5 use utf8;
6  
7 use Moose;
8  
9 use overload q{""} => 'stringify';
10  
11 our $VERSION = '0.042'; # VERSION
12  
13 sub stringify {
14 my $self = shift();
15 return Chart::Plotly::render_full_html( data => $self->data );
16 }
17  
18 has data => ( is => 'ro' );
19  
20 1;
21  
22 __END__