File Coverage

blib/lib/DigitalX/AqHive.pm
Criterion Covered Total %
statement 4 8 50.0
branch n/a
condition n/a
subroutine 2 6 33.3
pod n/a
total 6 14 42.8


line stmt bran cond sub pod time code
1             package DigitalX::AqHive;
2             BEGIN {
3 1     1   408 $DigitalX::AqHive::AUTHORITY = 'cpan:GETTY';
4             }
5             $DigitalX::AqHive::VERSION = '0.002';
6 1     1   526 use Moo::Role;
  1         18140  
  1         3  
7              
8             has adc_fix => (
9             is => 'lazy',
10             );
11              
12 0     0     sub _build_adc_fix { 4.8828125 }
13              
14             has fixed => (
15             is => 'lazy',
16             );
17              
18 0     0     sub _build_fixed { $_[0]->in * $_[0]->adc_fix }
19              
20             has correct_sens => (
21             is => 'lazy',
22             );
23              
24 0     0     sub _build_correct_sens { 2500 }
25              
26             has corrected => (
27             is => 'lazy',
28             );
29              
30 0     0     sub _build_corrected { $_[0]->correct_sens - $_[0]->fixed }
31              
32             # sub _build_correct_sens { 512 }
33              
34             # has corrected => (
35             # is => 'lazy',
36             # );
37              
38             # sub _build_corrected { ( $_[0]->correct_sens - $_[0]->in ) * $_[0]->adc_fix }
39              
40             1;
41              
42             __END__
43              
44             =pod
45              
46             =head1 NAME
47              
48             DigitalX::AqHive
49              
50             =head1 VERSION
51              
52             version 0.002
53              
54             =head1 DESCRIPTION
55              
56             B<IN DEVELOPMENT, DO NOT USE YET>
57              
58             See L<http://aquariumhive.com/> for now.
59              
60             =head1 SUPPORT
61              
62             IRC
63              
64             Join #AquariumHive on irc.freenode.net. Highlight Getty for fast reaction :).
65              
66             Repository
67              
68             https://github.com/homehivelab/aquariumhive
69             Pull request and additional contributors are welcome
70              
71             Issue Tracker
72              
73             https://github.com/homehivelab/aquariumhive/issues
74              
75             =head1 AUTHOR
76              
77             Torsten Raudssus <torsten@raudss.us>
78              
79             =head1 COPYRIGHT AND LICENSE
80              
81             This software is copyright (c) 2014 by Torsten Raudssus.
82              
83             This is free software; you can redistribute it and/or modify it under
84             the same terms as the Perl 5 programming language system itself.
85              
86             =cut