line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Finance::Alpaca::Struct::Clock 0.9902 { |
2
|
1
|
|
|
1
|
|
7
|
use strictures 2; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
39
|
|
3
|
1
|
|
|
1
|
|
246
|
use feature 'signatures'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
63
|
|
4
|
1
|
|
|
1
|
|
5
|
no warnings 'experimental::signatures'; |
|
1
|
|
|
|
|
31
|
|
|
1
|
|
|
|
|
54
|
|
5
|
|
|
|
|
|
|
# |
6
|
1
|
|
|
1
|
|
6
|
use Type::Library 0.008 -base, -declare => qw[Clock]; |
|
1
|
|
|
|
|
16
|
|
|
1
|
|
|
|
|
6
|
|
7
|
1
|
|
|
1
|
|
402
|
use Type::Utils; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
8
|
1
|
|
|
1
|
|
1478
|
use Types::Standard qw[Bool Enum Int Num Ref Str]; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
9
|
1
|
|
|
1
|
|
1400
|
use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" }; |
|
1
|
|
|
|
|
17
|
|
|
1
|
|
|
|
|
6
|
|
10
|
|
|
|
|
|
|
class_type Clock, { class => __PACKAGE__ }; |
11
|
|
|
|
|
|
|
coerce( Clock, from Ref() => __PACKAGE__ . q[->new($_)] ); |
12
|
|
|
|
|
|
|
# |
13
|
1
|
|
|
1
|
|
348
|
use Moo; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
14
|
1
|
|
|
1
|
|
374
|
use lib './lib'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
15
|
1
|
|
|
1
|
|
142
|
use Finance::Alpaca::Types; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
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__ |