Reveal.pm

filter: Statementstmt 83.3% 10 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 82.3% 14 / 17 CC 1 SCAR 2.2
CC
1
Cov
83%
CompaniesSearch
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Logs.pm ↑ Summary Usage.pm »
1 package Tomba::Reveal;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use parent 'Tomba::Client';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 =head1 NAME
8  
9 Tomba::Reveal - Companies search (Reveal) for the Tomba.io API
10  
11 =head1 SYNOPSIS
12  
13 use Tomba::Reveal;
14  
15 my $tomba = Tomba::Reveal->new("ta_xxxxx", "ts_xxxxx");
16 my $companies = $tomba->CompaniesSearch({ query => "Real Estate Agency in Europe", page => 1 });
17  
18 =head1 DESCRIPTION
19  
20 Search for companies using natural language queries or structured filters.
21  
22 =cut
23  
24 #-------------------------------------------------------------------------------
25 # Companies Search (Reveal)
26 #-------------------------------------------------------------------------------
27  
28 =head2 CompaniesSearch
29  
30 my $data = $tomba->CompaniesSearch({ query => "Real Estate Agency in Europe", page => 1 });
31 my $data = $tomba->CompaniesSearch({
32 filters => {
33 industry => { include => ["technology"] },
34 location_country => { include => ["US"] },
35 },
36 page => 1,
37 });
38  
39 Search for companies using natural language queries or structured filters.
40  
41 See L<https://docs.tomba.io/api/reveal#post-reveal-search>
42  
43 =cut
44  
45 0 ▶sub CompaniesSearch {
Subroutine CompaniesSearch: not called CC=1 SCAR=6.9
Pod documented
46 0 my ($self, $body) = @_;
47 0 return $self->post(Tomba::Client::COMPANIES_SEARCH_PATH, $body);
48 }
49  
50 4 1;
51 __END__
« Logs.pm ↑ Summary Usage.pm »