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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5d995705f09349884cf122e5006b4618abfc288
4
- data.tar.gz: e78b3df2af15d1bcf94ee25c85c5ce339b24b57f
3
+ metadata.gz: e89e868d54e413d5c6fe5154f40365864f166707
4
+ data.tar.gz: 16a800a009692818306743a61ea0c03d47938de3
5
5
  SHA512:
6
- metadata.gz: 5e571d3c634b727f46276130ec55e1d48290614436f6379dd362d5c9fbcb8842faa32f6cad514f920bb5d729599b09633cb499f4b4df12196bf28b283e7cd247
7
- data.tar.gz: 5ee33b52bee34c0d7b822a52fa8a064491d40a79f739741f1fb5109021f2953ad65f8375f5d22e85d27672b6f3a3b0cbfca6647d6879c3712c4e3a97d185fcfe
6
+ metadata.gz: 38025736bee6bcb381e1ffa130448ccbfcdb1f99acbe6c33394e0446e0524bc06f8414645178a3c42f6a341a71ab2e1addacc35531c74fb15edb55bd15d86134
7
+ data.tar.gz: 1c66cda57c20adc407595de56048b67db3b587558b03c7fb9c04c4fc36a2e4c891015af4f6e8d375fe72eba5a422b92b32b761d2149bd9544565755558123c5b
@@ -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
@@ -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.11.2'
6
+ s.version = '0.11.3'
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.11.2
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-19 00:00:00.000000000 Z
12
+ date: 2013-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake