Skip to content

Instantly share code, notes, and snippets.

@jeffdeville
Created May 6, 2015 14:21
Show Gist options
  • Save jeffdeville/07e69aaea44efa6a38e9 to your computer and use it in GitHub Desktop.
Save jeffdeville/07e69aaea44efa6a38e9 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'bundler/setup'
Rubillow.configure do |configuration|
configuration.zwsid = ENV["API_KEY"]
end
address = "701 Lorraine St" #request.params[:address]
citystatezip = "Ardmore, PA 19003" # request.params[:citystatezip]
property = Rubillow::PropertyDetails.deep_search_results(address: address, citystatezip: citystatezip)
zpid = property.zpid
comps = Rubillow::PropertyDetails.deep_comps(zpid: zpid, count: 20)
@properties = comps.comparables.values.map do |comp|
Rubillow::PropertyDetails.updated_property_details(zpid: comp.zpid)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment