Created
May 6, 2015 14:21
-
-
Save jeffdeville/07e69aaea44efa6a38e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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