Sha256: 18eb505b925d140e63d507899ba4c550fe70adba19568eeebdee3b2d5ebcdda1
Contents?: true
Size: 395 Bytes
Versions: 4
Compression:
Stored size: 395 Bytes
Contents
class Lead < MLS::Model STATUSES = %w(delivered connected touring proposals leases closed lost) has_many :inquiries has_many :tim_alerts def regions Region.where(id: region_ids) end def term_units(value=nil) value ||= self.term case value when "<1" "year" when "flexible" "" when nil "" else "years" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mls-1.9.0 | lib/mls/models/lead.rb |
mls-1.8.0 | lib/mls/models/lead.rb |
mls-1.7.0 | lib/mls/models/lead.rb |
mls-1.6.0 | lib/mls/models/lead.rb |