Sha256: 3939982985afc09427d8b0dcf6795e93cd5d802f23d2341910b2545748557844
Contents?: true
Size: 292 Bytes
Versions: 19
Compression:
Stored size: 292 Bytes
Contents
class ResidenceClass < ActiveRecord::Base set_primary_key :name has_many :residential_energy_consumption_survey_responses CLASSIFICATIONS = ['mobile home', 'house', 'apartment'] def classification CLASSIFICATIONS.detect { |c| name.downcase.include? c } end col :name end
Version data entries
19 entries across 19 versions & 1 rubygems