Class: ResidenceClass
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ResidenceClass
- Defined in:
- lib/earth/residence/residence_class.rb
Constant Summary collapse
- CLASSIFICATIONS =
['mobile home', 'house', 'apartment']
Instance Method Summary collapse
Instance Method Details
#classification ⇒ Object
9 10 11 |
# File 'lib/earth/residence/residence_class.rb', line 9 def classification CLASSIFICATIONS.detect { |c| name.downcase.include? c } end |