API/Client/Contact.pm

filter: Statementstmt 94.1% 16 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 91.3% 21 / 23 CC 1 SCAR 1.8
CC
1
Cov
94%
node_name
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« API/Role/SendBy.pm ↑ Summary API/Recurring.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::Client::Contact;
5 8 $Net::FreshBooks::API::Client::Contact::VERSION = '0.24';
6 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 8 extends 'Net::FreshBooks::API::Base';
8  
9 8 has $_ => ( is => _fields()->{$_}->{is} ) for sort keys %{ _fields() };
10  
11 0 ▶sub node_name { return 'contact' }
Subroutine node_name: not called CC=1 SCAR=6.9
Pod documented
12  
13 64 ▶sub _fields {
Subroutine _fields: called CC=1 SCAR=0.0
14 return {
15 64 contact_id => { is => 'ro' },
16 username => { is => 'ro' },
17 first_name => { is => 'ro' },
18 last_name => { is => 'ro' },
19 email => { is => 'ro' },
20 phone1 => { is => 'ro' },
21 phone2 => { is => 'ro' },
22 };
23 }
24  
25 8 __PACKAGE__->meta->make_immutable();
26  
27 8 1;
28  
29 # ABSTRACT: Provides FreshBooks Contact objects to Clients and Invoices
30  
31 __END__
« API/Role/SendBy.pm ↑ Summary API/Recurring.pm »