Sha256: ef81a453116b115645ed55a2dcde4f9d7c56d4c0465c5994f974cdc360df8617
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
require 'excon' require 'json' require 'numverify/version' require 'numverify/request' module NumverifyClient class << self def validate(number:, country_code: nil, access_key: ENV['NUMVERIFY_ACCESS_KEY']) request(build_query(number, country_code, access_key)).perform(method: :get) end private def build_query(number, country_code, access_key) { number: number, country_code: country_code, access_key: access_key } end def request(query) NumverifyClient::Request.new(query) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
numverify-0.1.1 | lib/numverify.rb |
numverify-0.1.0 | lib/numverify.rb |