File Coverage

lib/Finance/Alpaca/Struct/Quote.pm
Criterion Covered Total %
statement 30 30 100.0
branch n/a
condition n/a
subroutine 10 10 100.0
pod n/a
total 40 40 100.0


line stmt bran cond sub pod time code
1             package Finance::Alpaca::Struct::Quote 0.9904 {
2 17     17   131 use strictures 2;
  17         141  
  17         730  
3 17     17   3552 use feature 'signatures';
  17         35  
  17         1365  
4 17     17   106 no warnings 'experimental::signatures';
  17         36  
  17         866  
5             #
6 17     17   114 use Type::Library 0.008 -base, -declare => qw[Quote];
  17         317  
  17         113  
7 17     17   8347 use Type::Utils qw[class_type from coerce]; # Do not import as()
  17         42  
  17         109  
8 17     17   12649 use Types::Standard qw[ArrayRef Int Num Ref Str];
  17         52  
  17         128  
9 17     17   21893 use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" };
  17         314  
  17         114  
10             class_type Quote, { class => __PACKAGE__ };
11             coerce( Quote, from Ref() => __PACKAGE__ . q[->new($_)] );
12             #
13 17     17   6108 use Moo;
  17         37  
  17         125  
14 17     17   5657 use lib './lib';
  17         35  
  17         149  
15 17     17   2642 use Finance::Alpaca::Types;
  17         34  
  17         125  
16             has timestamp => ( is => 'ro', isa => Timestamp, required => 1, coerce => 1, init_arg => 't' );
17             has ask_exchange => ( is => 'ro', isa => Str, required => 1, init_arg => 'ax' );
18             has ask_price => ( is => 'ro', isa => Str, required => 1, init_arg => 'ap' );
19             has ask_size => ( is => 'ro', isa => Str, required => 1, init_arg => 'as' );
20             has bid_exchange => ( is => 'ro', isa => Str, required => 1, init_arg => 'bx' );
21             has bid_price => ( is => 'ro', isa => Str, required => 1, init_arg => 'bp' );
22             has bid_size => ( is => 'ro', isa => Str, required => 1, init_arg => 'bs' );
23             has conditions => ( is => 'ro', isa => ArrayRef [Str], required => 1, init_arg => 'c' );
24             has symbol => ( is => 'ro', isa => Str, predicate => 1, init_arg => 'S' );
25             }
26             1;
27             __END__