Class: Tomba::Reveal

Inherits:
Service show all
Defined in:
lib/tomba/services/reveal.rb

Overview

Reveal service for company search.

Provides methods to search for companies.

Instance Method Summary collapse

Methods inherited from Service

#initialize

Constructor Details

This class inherits a constructor from Tomba::Service

Instance Method Details

#companies_search(params) ⇒ Hash

Companies Search

Searches for companies matching the given parameters.

Parameters:

  • params (Hash)

    search parameters (e.g., query, page, limit)

Returns:

  • (Hash)

    API response containing matching companies

Raises:

See Also:



18
19
20
21
22
23
24
25
26
# File 'lib/tomba/services/reveal.rb', line 18

def companies_search(params)
  raise Tomba::Exception, 'Missing required parameter: "params"' if params.nil? || params.empty?

  path = '/reveal'

  @client.call('get', path, {
                 'content-type' => 'application/json'
               }, params)
end