Sha256: 3066945b20d27b23d0be1484a9070945b6e4adebb33eea8c4bfa7dd30246db93
Contents?: true
Size: 361 Bytes
Versions: 3
Compression:
Stored size: 361 Bytes
Contents
module RETS4R class ListingMapper def initialize(params = {}) @select = params[:select] || ListingService.connection[:select] end def select @select end def map(original) listing = {} @select.each_pair {|rets_key, record_key| listing[record_key] = original[rets_key] } listing end end end
Version data entries
3 entries across 3 versions & 3 rubygems
Version | Path |
---|---|
rets4r-1.1.18 | lib/rets4r/listing_mapper.rb |
jschairb-rets4r-1.1.18 | lib/rets4r/listing_mapper.rb |
josephholsten-rets4r-1.1.17 | lib/rets4r/listing_mapper.rb |