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 +1 -0
- data/lib/mls/models/account.rb +8 -15
- data/lib/mls/models/address.rb +0 -5
- data/lib/mls/models/listing.rb +1 -0
- data/lib/mls/properties/array.rb +11 -0
- data/mls.gemspec +1 -1
- metadata +3 -2
data/lib/mls.rb
CHANGED
data/lib/mls/models/account.rb
CHANGED
@@ -1,37 +1,30 @@
|
|
1
1
|
class MLS::Account < MLS::Resource
|
2
2
|
|
3
3
|
property :id, Fixnum
|
4
|
-
property :type, String,
|
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,
|
9
|
-
property :password_confirmation, String,
|
10
|
-
property :perishable_token, String
|
11
|
-
property :perishable_token_set_at, String
|
12
|
-
property :ghost, Boolean,
|
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
|
|
data/lib/mls/models/address.rb
CHANGED
@@ -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)
|
data/lib/mls/models/listing.rb
CHANGED
@@ -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'
|
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.2.
|
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-
|
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
|