class DcAddressLookup::Client
Public Instance Methods
lookup(query)
click to toggle source
# File lib/dc_address_lookup/client.rb, line 3 def lookup(query) params = { f: "json", str: query } response = RestClient.get DcAddressLookup::ENDPOINT, { params: params } location = Response.new(response).location location if location.valid? end