mls 0.11.1 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mls/models/region.rb +19 -14
  3. data/mls.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fed599b0d84d93fd180c855b2de344c257afa8b
4
- data.tar.gz: a6e1a184ff6944a3143917b7ad053891dba0d563
3
+ metadata.gz: b5d995705f09349884cf122e5006b4618abfc288
4
+ data.tar.gz: e78b3df2af15d1bcf94ee25c85c5ce339b24b57f
5
5
  SHA512:
6
- metadata.gz: e5f884698b875978cfbc356d77de044ff12beca511f8ddd0d51cab04a3737599341d24b2e6a61cffc05d6d50d680ba30016e29e1a4d2c4f6a349d06ac4ab6497
7
- data.tar.gz: 078e8bfa1a11ebab534f9fe86b66db1de7fe433e09f09a944c7702af12d3b1674bb2aa51f58d6d989c2d6e1fb91c0cdfb831dd411a0b131c41087e0ca29d6bbb
6
+ metadata.gz: 5e571d3c634b727f46276130ec55e1d48290614436f6379dd362d5c9fbcb8842faa32f6cad514f920bb5d729599b09633cb499f4b4df12196bf28b283e7cd247
7
+ data.tar.gz: 5ee33b52bee34c0d7b822a52fa8a064491d40a79f739741f1fb5109021f2953ad65f8375f5d22e85d27672b6f3a3b0cbfca6647d6879c3712c4e3a97d185fcfe
@@ -1,21 +1,21 @@
1
1
  class MLS::Region < MLS::Resource
2
2
 
3
- property :id, Fixnum, :serialize => :if_present
4
- property :name, String, :serialize => false
5
- property :proper_name, String, :serialize => :if_present
6
- property :common_name, String, :serialize => :if_present
7
- property :code, String, :serialize => :if_present
8
- property :type, String, :serialize => :if_present
9
- property :source, String, :serialize => :if_present
10
- property :minimum_zoom, Fixnum, :serialize => :if_present
11
- property :maximum_zoom, Fixnum, :serialize => :if_present
12
- property :slug, String, :serialize => false
13
- property :geometry, Hash, :serialize => false
14
- property :envelope, Hash, :serialize => false
15
- property :children, Hash, :serialize => false
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, :serialize => :false
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
@@ -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.1'
6
+ s.version = '0.11.2'
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.1
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-11 00:00:00.000000000 Z
12
+ date: 2013-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake