Updating namespace, pushed it with old generic Foreclosures namespace setting

This commit is contained in:
Ryan McGrath 2009-12-10 04:40:21 -05:00
parent 4b47e6a11c
commit be526ad36a
2 changed files with 3 additions and 3 deletions

View file

@ -17,7 +17,7 @@ Using Rubeclosures is pretty straightfoward. Just consider the following code...
# Pull down up to 10 of the most recent foreclosure listings in your area
# Get your api_key at foreclosurelistings.com
lol = Foreclosures.new("domain", "api_key")
lol = Rubeclosures.new("domain", "api_key")
# Pass in state/area/county, or zipcode (object-ified)
epic = lol.getRecent({:zipcode => "20910"})
@ -28,7 +28,7 @@ You can also pass Rubeclosures an existing address to check if it is a foreclosu
require 'rubeclosures'
lol = Foreclosures.new("domain", "api_key")
lol = Rubeclosures.new("domain", "api_key")
# Check if this is a foreclosure or not (address/city/state as straight up args, non-obj)
epic = lol.getRecent("12345 Sesame St", "everytown", "CA")

View file

@ -8,7 +8,7 @@ include REXML
# Author: Ryan McGrath (ryan [at] venodesigns dot net) (@ryanmcgrath on Twitter)
class Foreclosures
class Rubeclosures
def initialize(domain, api_key)
@domain = domain
@api_key = api_key