File Coverage

blib/lib/WebService/KvKAPI/LocationProfile.pm
Criterion Covered Total %
statement 18 18 100.0
branch 1 2 50.0
condition n/a
subroutine 6 6 100.0
pod 1 1 100.0
total 26 27 96.3


line stmt bran cond sub pod time code
1 1     1   125587 use utf8;
  1         34  
  1         6  
2             package WebService::KvKAPI::LocationProfile;
3             our $VERSION = '0.105';
4             # ABSTRACT: Instance of OpenAPI client for locatieprofiel API of the KvK.
5              
6 1     1   62 use v5.26;
  1         4  
7 1     1   630 use Object::Pad;
  1         11736  
  1         4  
8 1     1   565 use WebService::KvKAPI::Formatters qw(format_location_number);
  1         3  
  1         109  
9              
10 1     1   419 class WebService::KvKAPI::LocationProfile :does(WebService::KvKAPI::Roles::OpenAPI);
  1         3  
  1         82  
11              
12 1     1 1 126 method get_location_profile {
13 1         7 my $id = format_location_number(shift);
14 1         4 my $geo = shift;
15 1 50       6 return $self->api_call(
16             'getVestigingByVestigingsnummer',
17             vestigingsnummer => $id,
18             $geo ? (geoData => 1) : ()
19             );
20             }
21              
22             1;
23              
24             =pod
25              
26             =encoding UTF-8
27              
28             =head1 NAME
29              
30             WebService::KvKAPI::LocationProfile - Instance of OpenAPI client for locatieprofiel API of the KvK.
31              
32             =head1 VERSION
33              
34             version 0.105
35              
36             =head1 AUTHOR
37              
38             Wesley Schwengle
39              
40             =head1 COPYRIGHT AND LICENSE
41              
42             This software is Copyright (c) 2018 by Mintlab / Zaaksysteem.nl / xxllnc, see CONTRIBUTORS file for others.
43              
44             This is free software, licensed under:
45              
46             The European Union Public License (EUPL) v1.1
47              
48             =cut
49              
50             __DATA__