mls 0.11.1 → 0.11.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/region.rb +19 -14
- 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: b5d995705f09349884cf122e5006b4618abfc288
|
4
|
+
data.tar.gz: e78b3df2af15d1bcf94ee25c85c5ce339b24b57f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e571d3c634b727f46276130ec55e1d48290614436f6379dd362d5c9fbcb8842faa32f6cad514f920bb5d729599b09633cb499f4b4df12196bf28b283e7cd247
|
7
|
+
data.tar.gz: 5ee33b52bee34c0d7b822a52fa8a064491d40a79f739741f1fb5109021f2953ad65f8375f5d22e85d27672b6f3a3b0cbfca6647d6879c3712c4e3a97d185fcfe
|
data/lib/mls/models/region.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
class MLS::Region < MLS::Resource
|
2
2
|
|
3
|
-
property :id, Fixnum
|
4
|
-
property :name, String
|
5
|
-
property :proper_name, String
|
6
|
-
property :common_name, String
|
7
|
-
property :code, String
|
8
|
-
property :type, String
|
9
|
-
property :source, String
|
10
|
-
property :minimum_zoom, Fixnum
|
11
|
-
property :maximum_zoom, Fixnum
|
12
|
-
property :slug, String
|
13
|
-
property :geometry, Hash
|
14
|
-
property :envelope, Hash
|
15
|
-
property :children, Hash
|
3
|
+
property :id, Fixnum
|
4
|
+
property :name, String
|
5
|
+
property :proper_name, String
|
6
|
+
property :common_name, String
|
7
|
+
property :code, String
|
8
|
+
property :type, String
|
9
|
+
property :source, String
|
10
|
+
property :minimum_zoom, Fixnum
|
11
|
+
property :maximum_zoom, Fixnum
|
12
|
+
property :slug, String
|
13
|
+
property :geometry, Hash
|
14
|
+
property :envelope, Hash
|
15
|
+
property :children, Hash
|
16
16
|
|
17
17
|
# Counter caches
|
18
|
-
property :listings_count, Fixnum
|
18
|
+
property :listings_count, Fixnum
|
19
19
|
|
20
20
|
class << self
|
21
21
|
|
@@ -24,6 +24,11 @@ class MLS::Region < MLS::Resource
|
|
24
24
|
MLS::Region::Parser.parse(response.body)
|
25
25
|
end
|
26
26
|
|
27
|
+
def all(options={})
|
28
|
+
response = MLS.get('/regions', options)
|
29
|
+
MLS::Region::Parser.parse_collection(response.body)
|
30
|
+
end
|
31
|
+
|
27
32
|
end
|
28
33
|
|
29
34
|
def name
|
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.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-11-
|
12
|
+
date: 2013-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|