Class: BriteAPI::EmailAPIClient

Inherits:
APIClient show all
Defined in:
lib/brite-api/clients/email_api_client.rb

Constant Summary collapse

API_HATH =
'/emails.json'

Constants inherited from APIClient

APIClient::API_HOST

Instance Method Summary collapse

Methods inherited from APIClient

#get, #initialize

Constructor Details

This class inherits a constructor from BriteAPI::APIClient

Instance Method Details

#verify(value) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/brite-api/clients/email_api_client.rb', line 6

def verify(value)
  params = { :address => value }
  if @options[:verify_connected] || @options['verify_connected']
    params[:verify_connected] = true
  end
  get API_HOST + API_HATH, params
end