mls 0.11.2 → 0.11.3
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/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: e89e868d54e413d5c6fe5154f40365864f166707
|
4
|
+
data.tar.gz: 16a800a009692818306743a61ea0c03d47938de3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38025736bee6bcb381e1ffa130448ccbfcdb1f99acbe6c33394e0446e0524bc06f8414645178a3c42f6a341a71ab2e1addacc35531c74fb15edb55bd15d86134
|
7
|
+
data.tar.gz: 1c66cda57c20adc407595de56048b67db3b587558b03c7fb9c04c4fc36a2e4c891015af4f6e8d375fe72eba5a422b92b32b761d2149bd9544565755558123c5b
|
data/lib/mls/models/listing.rb
CHANGED
@@ -88,7 +88,7 @@ class MLS::Listing < MLS::Resource
|
|
88
88
|
# Counter Caches
|
89
89
|
property :photos_count, Fixnum, :serialize => :false
|
90
90
|
|
91
|
-
attr_accessor :address, :agents, :account, :photos, :flyer, :floorplan, :videos, :similar_photos, :spaces
|
91
|
+
attr_accessor :address, :agents, :account, :photos, :flyer, :floorplan, :videos, :similar_photos, :spaces, :primary_agent
|
92
92
|
|
93
93
|
def avatar(size='150x100#', protocol='http')
|
94
94
|
if avatar_digest
|
@@ -383,4 +383,8 @@ class MLS::Listing::Parser < MLS::Parser
|
|
383
383
|
def agents=(agents)
|
384
384
|
@object.agents = agents.map {|a| MLS::Account::Parser.build(a) }
|
385
385
|
end
|
386
|
+
|
387
|
+
def primary_agent=(agent)
|
388
|
+
@object.primary_agent = MLS::Account::Parser.build(agent)
|
389
|
+
end
|
386
390
|
end
|
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.11.
|
4
|
+
version: 0.11.3
|
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-11
|
12
|
+
date: 2013-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|