API/Gateway.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« API/Estimate.pm ↑ Summary API/Invoice.pm »
1 8 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 8 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Net::FreshBooks::API::Gateway;
5 8 $Net::FreshBooks::API::Gateway::VERSION = '0.24';
6 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 8 extends 'Net::FreshBooks::API::Base';
8  
9 # gateway does not provide "get"
10 8 with 'Net::FreshBooks::API::Role::Iterator' => { -excludes => 'get' };
11  
12 8 has $_ => ( is => _fields()->{$_}->{is} ) for sort keys %{ _fields() };
13  
14 24 ▶sub _fields {
Subroutine _fields: called CC=1 SCAR=0.0
15 return {
16 24 name => { is => 'ro' },
17 autobill_capable => { is => 'ro' },
18 };
19 }
20  
21 8 __PACKAGE__->meta->make_immutable();
22  
23 8 1;
24  
25 # ABSTRACT: List gateways available in your FreshBooks account
26  
27 __END__
« API/Estimate.pm ↑ Summary API/Invoice.pm »