Sha256: 172c28e8cb6ae4069f5a13c32ad447dad52cda9af7eb1be126f6ba1d689690a4
Contents?: true
Size: 742 Bytes
Versions: 10
Compression:
Stored size: 742 Bytes
Contents
require 'lib/endeca' class Listing < Endeca::Document path 'http://192.168.3.218:8888/bridge/JSONControllerServlet.do' reader \ :address, :contact, :description, :header, :phone integer_reader \ 'RecordSpec' => :listing_id float_reader \ :longitude, :latitude decimal_reader :rent => :price boolean_reader :showemail => :show_email? reader(:rh_url => :details_url) {|url| "/{url}"} add_reader(:caret_delimited_reader) {|string| string.split('^+^')} caret_delimited_reader \ :thumbnails, :graphicurl => :graphic_urls def coordinates; [latitude, longitude] end def image_url; (graphic_urls || thumbnails).first rescue nil end dim_reader :zip, :bathrooms, :bedrooms end
Version data entries
10 entries across 10 versions & 1 rubygems