mls 0.2.54 → 0.3.0
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/address.rb +1 -1
- data/lib/mls/models/listing.rb +6 -4
- data/mls.gemspec +1 -1
- data/test/factories/listing.rb +1 -1
- data/test/units/models/test_listing.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 052dae083ec5bedfe33bcc0cc853ad8064222405
|
4
|
+
data.tar.gz: 5b89b5ea8ea7e88f34b38dad6fb9ad4762d48be7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca228eca7b15bf1b4be28fed65e774f5fdff1d1c336ac86fac29463640bcb8de68eeb26d32ed2dfa40d51360b3a9aab8e745ccf0319b96d5220e90dccc01c85f
|
7
|
+
data.tar.gz: d24afa58e88c0f791608d6cce75ef4ba3d599b072f1ee6326ec0011a8ee8bee8cb8527d45cb3e230f4cf08566dab9f37af6a879808d6675026521c9b8b81f76c
|
data/lib/mls/models/address.rb
CHANGED
@@ -22,7 +22,7 @@ class MLS::Address < MLS::Resource
|
|
22
22
|
property :min_size, Fixnum, :serialize => :if_present
|
23
23
|
property :comments, String
|
24
24
|
property :year_built, Fixnum
|
25
|
-
property :
|
25
|
+
property :size, Fixnum
|
26
26
|
property :floors, Fixnum
|
27
27
|
|
28
28
|
property :lobby_attendant, Boolean
|
data/lib/mls/models/listing.rb
CHANGED
@@ -28,7 +28,7 @@ class MLS::Listing < MLS::Resource
|
|
28
28
|
property :floor, Fixnum
|
29
29
|
property :comments, String
|
30
30
|
|
31
|
-
property :
|
31
|
+
property :size, Fixnum
|
32
32
|
property :maximum_contiguous_size, Fixnum
|
33
33
|
property :minimum_divisable_size, Fixnum
|
34
34
|
|
@@ -37,12 +37,14 @@ class MLS::Listing < MLS::Resource
|
|
37
37
|
property :rate_units, String, :default => '/sqft/mo'
|
38
38
|
property :rate_per_sqft_per_month, Decimal, :serialize => :false # need to make write methods for these that set rate to the according rate units. not accepted on api
|
39
39
|
property :rate_per_sqft_per_year, Decimal, :serialize => :false
|
40
|
-
property :
|
41
|
-
property :
|
40
|
+
property :rate_per_month, Decimal, :serialize => :false
|
41
|
+
property :rate_per_year, Decimal, :serialize => :false
|
42
42
|
property :sublease_expiration, DateTime
|
43
43
|
|
44
|
-
property :
|
44
|
+
property :forecast_rate_per_year, Decimal, :serialize => :false
|
45
|
+
property :forecast_rate_per_month, Decimal, :serialize => :false
|
45
46
|
property :forecast_rate_per_sqft_per_month, Decimal, :serialize => :false
|
47
|
+
property :forecast_rate_per_sqft_per_year, Decimal, :serialize => :false
|
46
48
|
|
47
49
|
property :available_on, DateTime
|
48
50
|
property :maximum_term_length, Fixnum
|
data/mls.gemspec
CHANGED
data/test/factories/listing.rb
CHANGED
@@ -14,7 +14,7 @@ FactoryGirl.define do
|
|
14
14
|
#agents_attributes { {'0' => FactoryGirl.attributes_for(:broker)} }
|
15
15
|
|
16
16
|
use 'Office'
|
17
|
-
|
17
|
+
size { Kernel.rand(3000..900000) }
|
18
18
|
maximum_contiguous_size { Kernel.rand(3000..900000) }
|
19
19
|
minimum_divisable_size { Kernel.rand(3000..900000) }
|
20
20
|
type 'lease'
|
@@ -16,7 +16,7 @@ class TestListing < ::Test::Unit::TestCase
|
|
16
16
|
assert listing.respond_to?(:unit)
|
17
17
|
assert listing.respond_to?(:floor)
|
18
18
|
assert listing.respond_to?(:comments)
|
19
|
-
assert listing.respond_to?(:
|
19
|
+
assert listing.respond_to?(:size)
|
20
20
|
assert listing.respond_to?(:maximum_contiguous_size)
|
21
21
|
assert listing.respond_to?(:minimum_divisable_size)
|
22
22
|
assert listing.respond_to?(:lease_terms)
|