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 +4 -4
- data/lib/mls/models/listing.rb +5 -1
- data/lib/mls/models/photo.rb +1 -1
- data/mls.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 451ee85d5f5ac92145ccb1694f56899b3645f35a
|
4
|
+
data.tar.gz: f74ab2094a8519647af73826fb390d80bc2cdd0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff82fb614a45898be0892294b5d29e4ebb319b6cb4c9adab77e488d27e3aadec298f0ffe3ef3a0142277a1edfe71eadb5cc69ee716d74b260a2fdcf038e9199b
|
7
|
+
data.tar.gz: 93c53157e8f205560e76d4e5ec97d8edb0ce6dd44f708cc9e3634b747ae2e76801a0554f891825c0757672f1ea50acfda15e78f746b282914ee5c7ec3626d733
|
data/lib/mls/models/listing.rb
CHANGED
@@ -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)
|
data/lib/mls/models/photo.rb
CHANGED
@@ -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 :
|
14
|
+
property :subject_id, Fixnum
|
15
15
|
|
16
16
|
def url(style=nil, protocol='http')
|
17
17
|
result = "#{protocol}://#{MLS.image_host}/#{digest}.jpg"
|
data/mls.gemspec
CHANGED
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.
|
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-
|
12
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|