mls 0.2.26 → 0.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/mls.rb CHANGED
@@ -412,6 +412,7 @@ require 'mls/properties/decimal'
412
412
  require 'mls/properties/datetime'
413
413
  require 'mls/properties/string'
414
414
  require 'mls/properties/hash'
415
+ require 'mls/properties/array'
415
416
 
416
417
  # Models
417
418
  require 'mls/model'
@@ -1,37 +1,30 @@
1
1
  class MLS::Account < MLS::Resource
2
2
 
3
3
  property :id, Fixnum
4
- property :type, String, :default => 'Account'
4
+ property :type, String, :default => 'Account'
5
5
  property :name, String
6
6
  property :title, String
7
7
  property :email, String
8
- property :password, String, :serialize => :if_present
9
- property :password_confirmation, String, :serialize => :if_present
10
- property :perishable_token, String
11
- property :perishable_token_set_at, String
12
- property :ghost, Boolean, :serialize => false, :default => false
8
+ property :password, String, :serialize => :if_present
9
+ property :password_confirmation, String, :serialize => :if_present
10
+ property :perishable_token, String, :serialize => false
11
+ property :perishable_token_set_at, String, :serialize => false
12
+ property :ghost, Boolean, :serialize => false, :default => false
13
13
 
14
14
  property :phone, String
15
- property :system_phone, String
15
+ property :system_phone, String, :serialize => false
16
16
  property :company, String
17
17
  property :license, String
18
18
  property :linkedin, String
19
19
  property :twitter, String
20
20
  property :facebook, String
21
21
  property :web, String
22
- property :system_phone, String
23
22
 
24
23
  property :city, String
25
24
  property :state, String
26
25
  property :country, String
27
26
 
28
- property :auth_key, String
29
-
30
- property :funding, String
31
- property :population, String
32
- property :growing, Boolean
33
- property :move_in, String
34
- property :extra_info, String
27
+ property :auth_key, String, :serialize => false
35
28
 
36
29
  exclude_from_comparison :password, :password_confirmation
37
30
 
@@ -122,11 +122,6 @@ class MLS::Address < MLS::Resource
122
122
  MLS::Address::Parser.parse_collection(response.body)
123
123
  end
124
124
 
125
- # Bounds is passed as 'n,e,s,w' or [n, e, s, w]
126
- def box_cluster(bounds, zoom, where={})
127
- MLS.get('/addresses/box_cluster', :bounds => bounds, :zoom => zoom, :where => where)
128
- end
129
-
130
125
  def find(id)
131
126
  response = MLS.get("/addresses/#{id}")
132
127
  MLS::Address::Parser.parse(response.body)
@@ -18,6 +18,7 @@ class MLS::Listing < MLS::Resource
18
18
  property :source_url, String
19
19
  property :source_type, String, :serialize => :if_present
20
20
  property :channel, String, :serialize => :if_present
21
+ property :photo_ids, Array, :serialize => :if_present
21
22
 
22
23
  property :name, String
23
24
  property :type, String, :default => 'lease'
@@ -0,0 +1,11 @@
1
+ class MLS::Property::Array < MLS::Property
2
+
3
+ def load(value) # from_json
4
+ value
5
+ end
6
+
7
+ def dump(value)
8
+ value
9
+ end
10
+
11
+ 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.2.26'
6
+ s.version = '0.2.28'
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.26
4
+ version: 0.2.28
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-24 00:00:00.000000000 Z
13
+ date: 2013-02-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -213,6 +213,7 @@ files:
213
213
  - lib/mls/models/tour_request.rb
214
214
  - lib/mls/models/video.rb
215
215
  - lib/mls/parser.rb
216
+ - lib/mls/properties/array.rb
216
217
  - lib/mls/properties/boolean.rb
217
218
  - lib/mls/properties/datetime.rb
218
219
  - lib/mls/properties/decimal.rb