From a99a94e5e909a5a915d1477193ff967508bcfd17 Mon Sep 17 00:00:00 2001 From: skopu Date: Sun, 22 Sep 2019 20:20:13 +0200 Subject: [PATCH] fix constant name --- lib/email_hunter/account.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/email_hunter/account.rb b/lib/email_hunter/account.rb index ce05ee9..6418745 100644 --- a/lib/email_hunter/account.rb +++ b/lib/email_hunter/account.rb @@ -1,7 +1,7 @@ require 'faraday' require 'json' -API_VERIFY_URL = 'https://api.hunter.io/v2/account?' +API_ACCOUNT_URL = 'https://api.hunter.io/v2/account?' module EmailHunter class Account @@ -19,9 +19,9 @@ def hunt private def apiresponse - url = URI.parse(URI.encode("#{API_VERIFY_URL}&api_key=#{@key}")) + url = URI.parse(URI.encode("#{API_ACCOUNT_URL}&api_key=#{@key}")) response = Faraday.new(url).get response.success? ? JSON.parse(response.body, {symbolize_names: true}) : [] end end -end \ No newline at end of file +end