Permalink
Browse files

Changes to listing terms.

  • Loading branch information...
1 parent e342e78 commit b0323a319c422f0a95ffcc01c310174216efe64a @waratuman waratuman committed Sep 3, 2013
Showing with 4 additions and 6 deletions.
  1. +2 −3 lib/mls/models/listing.rb
  2. +1 −1 mls.gemspec
  3. +1 −2 test/units/models/test_listing.rb
View
5 lib/mls/models/listing.rb
@@ -49,9 +49,8 @@ class MLS::Listing < MLS::Resource
property :forecast_rate_per_sqft_per_year, Decimal, :serialize => :false
property :available_on, DateTime
- property :maximum_term_length, Fixnum
- property :minimum_term_length, Fixnum
- property :term_length_units, String, :default => 'years'
+ property :term, Fixnum
+ property :term_units, String, :default => 'years'
property :offices, Fixnum
property :conference_rooms, Fixnum
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.9.5'
+ s.version = '0.9.6'
s.authors = ["James R. Bracy", "Jon Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"
View
3 test/units/models/test_listing.rb
@@ -24,8 +24,7 @@ def test_properties
assert listing.respond_to?(:rate_units)
assert listing.respond_to?(:sublease_expiration)
assert listing.respond_to?(:available_on)
- assert listing.respond_to?(:maximum_term_length)
- assert listing.respond_to?(:minimum_term_length)
+ assert listing.respond_to?(:term)
assert listing.respond_to?(:offices)
assert listing.respond_to?(:conference_rooms)
assert listing.respond_to?(:bathrooms)

0 comments on commit b0323a3

Please sign in to comment.