Sha256: c433e196d5d384ffedd5f9b6ac5bb72614708a931cd5f85510b1fb8f786c65dd

Contents?: true

Size: 247 Bytes

Versions: 2

Compression:

Stored size: 247 Bytes

Contents

module DcAddressLookup
  class Client
    def lookup(query)
      response = RestClient.get DcAddressLookup::ENDPOINT, { params: { str: query } }
      location = Response.new(response).location
      location if location.valid?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dc_address_lookup-0.2.0 lib/dc_address_lookup/client.rb
dc_address_lookup-0.1.3 lib/dc_address_lookup/client.rb