mls 0.2.32 → 0.2.33

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 do |p|
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)
@@ -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 do |p|
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)
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mls"
6
- s.version = '0.2.32'
6
+ s.version = '0.2.33'
7
7
  s.authors = ["James R. Bracy", "Jon Bracy"]
8
8
  s.email = ["james@42floors.com"]
9
9
  s.homepage = "http://mls.42floors.com"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.32
4
+ version: 0.2.33
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: