Class: Tomba::Count

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

Instance Method Summary collapse

Methods inherited from Service

#initialize

Constructor Details

This class inherits a constructor from Tomba::Service

Instance Method Details

#email_count(domain:) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/tomba/services/count.rb', line 4

def email_count(domain:)
    if domain.nil?
        raise Tomba::Exception.new('Missing required parameter: "domain"')
    end

    path = '/email-count'

    params = {}

    if !domain.nil?
        params[:domain] = domain
    end

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