Permalink
Browse files

Renaming rate fields + version bump.

  • Loading branch information...
waratuman committed Jan 9, 2013
1 parent e2ab4f8 commit 389a7c4bd0e30782e5d710ee6847749a99593ea8
Showing with 9 additions and 9 deletions.
  1. +2 −2 lib/mls/models/address.rb
  2. +4 −4 lib/mls/models/listing.rb
  3. +1 −1 mls.gemspec
  4. +2 −2 test/units/models/test_listing.rb
@@ -16,8 +16,8 @@ class MLS::Address < MLS::Resource
property :state, String
property :country, String
property :postal_code, String
- property :min_rate_per_year, Decimal, :serialize => :if_present
- property :max_rate_per_year, Decimal, :serialize => :if_present
+ property :min_rate_per_sqft_per_year, Decimal, :serialize => :if_present
+ property :max_rate_per_sqft_per_year, Decimal, :serialize => :if_present
property :max_size, Fixnum, :serialize => :if_present
property :min_size, Fixnum, :serialize => :if_present
property :comments, String
@@ -34,10 +34,10 @@ class MLS::Listing < MLS::Resource
property :lease_terms, String
property :rate, Decimal
property :rate_units, String, :default => '/sqft/mo'
- 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
- property :rate_per_year, Decimal, :serialize => :false
- property :total_rate_per_month, Decimal, :serialize => :false
- property :total_rate_per_year, Decimal, :serialize => :false
+ 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
+ property :rate_per_sqft_per_year, Decimal, :serialize => :false
+ property :monthly_rate, Decimal, :serialize => :false
+ property :yearly_rate, Decimal, :serialize => :false
property :sublease_expiration, DateTime
property :available_on, DateTime
View
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "mls"
- s.version = '0.2.17'
+ s.version = '0.2.18'
s.authors = ["James R. Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"
@@ -22,8 +22,8 @@ def test_properties
assert listing.respond_to?(:lease_terms)
assert listing.respond_to?(:rate)
assert listing.respond_to?(:rate_units)
- assert listing.respond_to?(:rate_per_month)
- assert listing.respond_to?(:rate_per_year)
+ assert listing.respond_to?(:rate_per_sqft_per_month)
+ assert listing.respond_to?(:rate_per_sqft_per_year)
assert listing.respond_to?(:sublease_expiration)
assert listing.respond_to?(:available_on)
assert listing.respond_to?(:maximum_term_length)

0 comments on commit 389a7c4

Please sign in to comment.