Class: Tomba::Technology

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

Overview

Technology service for detecting website technologies.

Provides methods to discover the technologies used by a website.

Instance Method Summary collapse

Methods inherited from Service

#initialize

Constructor Details

This class inherits a constructor from Tomba::Service

Instance Method Details

#list(domain) ⇒ Hash

List Technologies

Returns the technologies detected on a given domain.

Parameters:

  • domain (String)

    the domain name to analyze

Returns:

  • (Hash)

    API response containing detected technologies

Raises:

See Also:



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

def list(domain)
  raise Tomba::Exception, 'Missing required parameter: "domain"' if domain.nil?

  path = '/technology'

  params = { domain: domain }

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