Skip to content
Browse files

lease_type to lease_terms

  • Loading branch information...
1 parent cf87d07 commit 8cfd1e1ed8fa9a4c1338e49e0f0e1ae2c37b4dbb @malomalo malomalo committed Jan 4, 2013
Showing with 5 additions and 5 deletions.
  1. +2 −2 lib/mls/models/listing.rb
  2. +1 −1 mls.gemspec
  3. +1 −1 test/factories/listing.rb
  4. +1 −1 test/units/models/test_listing.rb
View
4 lib/mls/models/listing.rb
@@ -3,7 +3,7 @@ class MLS::Listing < MLS::Resource
STATES = %w(processing listed leased expired)
KINDS = %w(lease sublease coworking)
SPACE_TYPES = %w(unit floor building)
- LEASE_TYPES = ['Full Service', 'NNN', 'Gross', 'Industrial Gross', 'Modified Gross', 'Triple Net', 'Modified Net']
+ LEASE_TERMS = ['Full Service', 'NNN', 'Modified Gross']
RATE_UNITS = ['ft^2/year', 'ft^2/month', 'month', 'year', 'desk/month']
USES = ["Office", "Creative", "Loft", "Medical Office", "Flex Space", "R&D", "Office Showroom", "Industrial", "Retail"]
SOURCE_TYPES = %w(website flyer)
@@ -32,7 +32,7 @@ class MLS::Listing < MLS::Resource
property :maximum_contiguous_size, Fixnum
property :minimum_divisable_size, Fixnum
- property :lease_type, String
+ property :lease_terms, String
property :rate, Decimal
property :rate_units, String, :default => 'ft^2/month'
property :rate_per_month, Decimal, :serialize => :false # need to make write methods for these that set rate to the according rate units. not accepted on api
View
2 mls.gemspec
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "mls"
- s.version = '0.2.9.1'
+ s.version = '0.2.11'
s.authors = ["James R. Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"
View
2 test/factories/listing.rb
@@ -18,7 +18,7 @@
maximum_contiguous_size { Kernel.rand(3000..900000) }
minimum_divisable_size { Kernel.rand(3000..900000) }
kind 'lease'
- #lease_type { ::MLS::Listing::LEASE_TYPES.sample }
+ #lease_terms { ::MLS::Listing::LEASE_TERMS.sample }
space_type 'unit'
rate { rand(15..300) }
available_on { Time.now + (20 + rand(0..360).to_i).days }
View
2 test/units/models/test_listing.rb
@@ -20,7 +20,7 @@ def test_properties
assert listing.respond_to?(:total_size)
assert listing.respond_to?(:maximum_contiguous_size)
assert listing.respond_to?(:minimum_divisable_size)
- assert listing.respond_to?(:lease_type)
+ assert listing.respond_to?(:lease_terms)
assert listing.respond_to?(:rate)
assert listing.respond_to?(:rate_units)
assert listing.respond_to?(:rate_per_month)

0 comments on commit 8cfd1e1

Please sign in to comment.
Something went wrong with that request. Please try again.