lib/mls.rb in mls-0.2.37 vs lib/mls.rb in mls-0.2.38
- old
+ new
@@ -58,11 +58,14 @@
def asset_host # TODO: testme
@asset_host ||= get('/asset_host').body
end
def image_host # TODO: testme
+ raw_image_host % (rand(4) + 1)
+ end
+
+ def raw_image_host
@image_host ||= get('/image_host').body
- @image_host % rand(4) + 1
end
def listing_amenities
@listing_amenities ||= Yajl::Parser.new(:symbolize_keys => true)
.parse(MLS.get('/listings/amenities').body)