Class: ResidenceClass
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ResidenceClass
- Extended by:
- Earth::Model
- Defined in:
- lib/earth/residence/residence_class.rb
Constant Summary collapse
- TABLE_STRUCTURE =
<<-EOS CREATE TABLE residence_classes ( name CHARACTER VARYING(255) NOT NULL PRIMARY KEY ); EOS
- CLASSIFICATIONS =
['mobile home', 'house', 'apartment']
Instance Method Summary collapse
Methods included from Earth::Model
extend_mining, extended, registry
Instance Method Details
#classification ⇒ Object
23 24 25 |
# File 'lib/earth/residence/residence_class.rb', line 23 def classification CLASSIFICATIONS.detect { |c| name.downcase.include? c } end |