line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Alpaca::Struct::Clock 0.9902 { |
2
|
17
|
|
|
17
|
|
115
|
use strictures 2; |
|
17
|
|
|
|
|
136
|
|
|
17
|
|
|
|
|
720
|
|
3
|
17
|
|
|
17
|
|
3487
|
use feature 'signatures'; |
|
17
|
|
|
|
|
73
|
|
|
17
|
|
|
|
|
1271
|
|
4
|
17
|
|
|
17
|
|
96
|
no warnings 'experimental::signatures'; |
|
17
|
|
|
|
|
26
|
|
|
17
|
|
|
|
|
674
|
|
5
|
|
|
|
|
|
|
# |
6
|
17
|
|
|
17
|
|
84
|
use Type::Library 0.008 -base, -declare => qw[Clock]; |
|
17
|
|
|
|
|
318
|
|
|
17
|
|
|
|
|
101
|
|
7
|
17
|
|
|
17
|
|
6489
|
use Type::Utils; |
|
17
|
|
|
|
|
33
|
|
|
17
|
|
|
|
|
94
|
|
8
|
17
|
|
|
17
|
|
21691
|
use Types::Standard qw[Bool Enum Int Num Ref Str]; |
|
17
|
|
|
|
|
33
|
|
|
17
|
|
|
|
|
131
|
|
9
|
17
|
|
|
17
|
|
20210
|
use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" }; |
|
17
|
|
|
|
|
331
|
|
|
17
|
|
|
|
|
104
|
|
10
|
|
|
|
|
|
|
class_type Clock, { class => __PACKAGE__ }; |
11
|
|
|
|
|
|
|
coerce( Clock, from Ref() => __PACKAGE__ . q[->new($_)] ); |
12
|
|
|
|
|
|
|
# |
13
|
17
|
|
|
17
|
|
6034
|
use Moo; |
|
17
|
|
|
|
|
39
|
|
|
17
|
|
|
|
|
131
|
|
14
|
17
|
|
|
17
|
|
5608
|
use lib './lib'; |
|
17
|
|
|
|
|
33
|
|
|
17
|
|
|
|
|
109
|
|
15
|
17
|
|
|
17
|
|
2501
|
use Finance::Alpaca::Types; |
|
17
|
|
|
|
|
29
|
|
|
17
|
|
|
|
|
115
|
|
16
|
|
|
|
|
|
|
has [qw[next_open next_close timestamp]] => |
17
|
|
|
|
|
|
|
( is => 'ro', isa => Timestamp, required => 1, coerce => 1 ); |
18
|
|
|
|
|
|
|
has is_open => ( is => 'ro', isa => Bool, required => 1, coerce => 1 ); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
__END__ |