Skip to content

Commit

Permalink
Renaming rate fields + version bump.
Browse files Browse the repository at this point in the history
  • Loading branch information
waratuman committed Jan 9, 2013
1 parent e2ab4f8 commit 389a7c4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions lib/mls/models/address.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class MLS::Address < MLS::Resource
property :state, String property :state, String
property :country, String property :country, String
property :postal_code, String property :postal_code, String
property :min_rate_per_year, Decimal, :serialize => :if_present property :min_rate_per_sqft_per_year, Decimal, :serialize => :if_present
property :max_rate_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 :max_size, Fixnum, :serialize => :if_present
property :min_size, Fixnum, :serialize => :if_present property :min_size, Fixnum, :serialize => :if_present
property :comments, String property :comments, String
Expand Down
8 changes: 4 additions & 4 deletions lib/mls/models/listing.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ class MLS::Listing < MLS::Resource
property :lease_terms, String property :lease_terms, String
property :rate, Decimal property :rate, Decimal
property :rate_units, String, :default => '/sqft/mo' 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_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_year, Decimal, :serialize => :false property :rate_per_sqft_per_year, Decimal, :serialize => :false
property :total_rate_per_month, Decimal, :serialize => :false property :monthly_rate, Decimal, :serialize => :false
property :total_rate_per_year, Decimal, :serialize => :false property :yearly_rate, Decimal, :serialize => :false
property :sublease_expiration, DateTime property :sublease_expiration, DateTime


property :available_on, DateTime property :available_on, DateTime
Expand Down
2 changes: 1 addition & 1 deletion mls.gemspec
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)


Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = "mls" s.name = "mls"
s.version = '0.2.17' s.version = '0.2.18'
s.authors = ["James R. Bracy"] s.authors = ["James R. Bracy"]
s.email = ["james@42floors.com"] s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com" s.homepage = "http://mls.42floors.com"
Expand Down
4 changes: 2 additions & 2 deletions test/units/models/test_listing.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def test_properties
assert listing.respond_to?(:lease_terms) assert listing.respond_to?(:lease_terms)
assert listing.respond_to?(:rate) assert listing.respond_to?(:rate)
assert listing.respond_to?(:rate_units) assert listing.respond_to?(:rate_units)
assert listing.respond_to?(:rate_per_month) assert listing.respond_to?(:rate_per_sqft_per_month)
assert listing.respond_to?(:rate_per_year) assert listing.respond_to?(:rate_per_sqft_per_year)
assert listing.respond_to?(:sublease_expiration) assert listing.respond_to?(:sublease_expiration)
assert listing.respond_to?(:available_on) assert listing.respond_to?(:available_on)
assert listing.respond_to?(:maximum_term_length) assert listing.respond_to?(:maximum_term_length)
Expand Down

0 comments on commit 389a7c4

Please sign in to comment.