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   112 use strictures 2;
  17         133  
  17         659  
3 17     17   3374 use feature 'signatures';
  17         34  
  17         1237  
4 17     17   87 no warnings 'experimental::signatures';
  17         28  
  17         734  
5             #
6 17     17   88 use Type::Library 0.008 -base, -declare => qw[Quote];
  17         301  
  17         101  
7 17     17   7127 use Type::Utils qw[class_type from coerce]; # Do not import as()
  17         31  
  17         142  
8 17     17   10364 use Types::Standard qw[ArrayRef Int Num Ref Str];
  17         33  
  17         117  
9 17     17   18310 use Types::TypeTiny 0.004 StringLike => { -as => "Stringable" };
  17         298  
  17         98  
10             class_type Quote, { class => __PACKAGE__ };
11             coerce( Quote, from Ref() => __PACKAGE__ . q[->new($_)] );
12             #
13 17     17   5513 use Moo;
  17         32  
  17         122  
14 17     17   5121 use lib './lib';
  17         34  
  17         109  
15 17     17   2356 use Finance::Alpaca::Types;
  17         32  
  17         111  
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__