mls 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c820e9cf2b6fbe4b0037edf5af277f118d3247b
4
- data.tar.gz: b8f9628ca497232cf454a695bd793719fd86a036
3
+ metadata.gz: 451ee85d5f5ac92145ccb1694f56899b3645f35a
4
+ data.tar.gz: f74ab2094a8519647af73826fb390d80bc2cdd0b
5
5
  SHA512:
6
- metadata.gz: 17311c729b0b776ae7839301a91579bcac00762b9f50fd7e25c6f4d54875379b91da56f005b4706cf2c123811dbb7753d83f81a87bf7228403edffbf98d90fad
7
- data.tar.gz: f03ed6ccb4a65fb1df7d8956d68689489b1a89c8b6e039816dad6bec74f46ffe1baa699060ae1fc3bfc9b145a59b182818ff182fdf52ccaee1af42ba55e9d25b
6
+ metadata.gz: ff82fb614a45898be0892294b5d29e4ebb319b6cb4c9adab77e488d27e3aadec298f0ffe3ef3a0142277a1edfe71eadb5cc69ee716d74b260a2fdcf038e9199b
7
+ data.tar.gz: 93c53157e8f205560e76d4e5ec97d8edb0ce6dd44f708cc9e3634b747ae2e76801a0554f891825c0757672f1ea50acfda15e78f746b282914ee5c7ec3626d733
@@ -86,7 +86,7 @@ class MLS::Listing < MLS::Resource
86
86
  # Counter Caches
87
87
  property :photos_count, Fixnum, :serialize => :false
88
88
 
89
- attr_accessor :address, :agents, :account, :photos, :flyer, :floorplan, :videos
89
+ attr_accessor :address, :agents, :account, :photos, :flyer, :floorplan, :videos, :similar_photos
90
90
 
91
91
  def avatar(size='150x100#', protocol='http')
92
92
  if avatar_digest
@@ -258,6 +258,10 @@ class MLS::Listing::Parser < MLS::Parser
258
258
  @object.photos = photos.map {|p| MLS::Photo::Parser.build(p)}
259
259
  end
260
260
 
261
+ def similar_photos=(photos)
262
+ @object.similar_photos = photos.map { |p| MLS::Photo::Parser.build(p) }
263
+ end
264
+
261
265
  def videos=(videos)
262
266
  @object.videos = videos.map do |video|
263
267
  MLS::Video::Parser.build(video)
@@ -11,7 +11,7 @@ class MLS::Photo < MLS::Resource
11
11
  property :file_size, Fixnum
12
12
  property :url_template, String
13
13
  property :caption, String
14
- property :similar_subject_id, Fixnum, :serialize => false
14
+ property :subject_id, Fixnum
15
15
 
16
16
  def url(style=nil, protocol='http')
17
17
  result = "#{protocol}://#{MLS.image_host}/#{digest}.jpg"
@@ -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.7.1'
6
+ s.version = '0.7.2'
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.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James R. Bracy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-06 00:00:00.000000000 Z
12
+ date: 2013-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake