Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changing the rate type names.

  • Loading branch information...
commit 5bdc62dffe177f7db0d293915da6acb8f19a189a 1 parent 0fae7a3
@waratuman waratuman authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mls/models/listing.rb
4 lib/mls/models/listing.rb
@@ -4,7 +4,7 @@ class MLS::Listing < MLS::Resource
TYPES = %w(lease sublease coworking_space)
SPACE_TYPES = %w(unit floor building)
LEASE_TERMS = ['Full Service', 'NNN', 'Modified Gross']
- RATE_UNITS = ['ft^2/year', 'ft^2/month', 'month', 'year', 'desk/month']
+ RATE_UNITS = ['/sqft/yr', '/sqft/mo', '/mo', '/yr', '/desk/mo']
USES = ["Office", "Creative", "Loft", "Medical Office", "Flex Space", "R&D", "Office Showroom", "Industrial", "Retail"]
SOURCE_TYPES = %w(website flyer)
CHANNELS = %w(excavator mls staircase broker_dashboard)
@@ -34,7 +34,7 @@ class MLS::Listing < MLS::Resource
property :lease_terms, String
property :rate, Decimal
- property :rate_units, String, :default => 'ft^2/month'
+ 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
Please sign in to comment.
Something went wrong with that request. Please try again.