mls 0.2.32 → 0.2.33
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mls/models/address.rb +1 -3
- data/lib/mls/models/listing.rb +1 -3
- data/mls.gemspec +1 -1
- metadata +1 -1
data/lib/mls/models/address.rb
CHANGED
@@ -153,9 +153,7 @@ class MLS::Address::Parser < MLS::Parser
|
|
153
153
|
end
|
154
154
|
|
155
155
|
def photos=(photos)
|
156
|
-
@object.photos = photos.map
|
157
|
-
MLS::Photo.new(:digest => p[:digest], :id => p[:id].to_i)
|
158
|
-
end
|
156
|
+
@object.photos = photos.map {|p| MLS::Photo::Parser.build(p)}
|
159
157
|
end
|
160
158
|
|
161
159
|
def videos=(videos)
|
data/lib/mls/models/listing.rb
CHANGED
@@ -244,9 +244,7 @@ end
|
|
244
244
|
class MLS::Listing::Parser < MLS::Parser
|
245
245
|
|
246
246
|
def photos=(photos)
|
247
|
-
@object.photos = photos.map
|
248
|
-
MLS::Photo.new(:digest => p[:digest], :id => p[:id].to_i)
|
249
|
-
end
|
247
|
+
@object.photos = photos.map {|p| MLS::Photo::Parser.build(p)}
|
250
248
|
end
|
251
249
|
|
252
250
|
def videos=(videos)
|
data/mls.gemspec
CHANGED