Sha256: 676f2cf6c552a1e6683949ff0431b423a220e201a907f2a5b7a41fb8673510de

Contents?: true

Size: 1009 Bytes

Versions: 18

Compression:

Stored size: 1009 Bytes

Contents

class ResidentialEnergyConsumptionSurveyResponse < ActiveRecord::Base
  set_primary_key :department_of_energy_identifier
    
  belongs_to :census_division,     :foreign_key => 'census_division_number'
  belongs_to :census_region,       :foreign_key => 'census_region_number'
  # what follows are entirely derived here
  belongs_to :residence_class
  belongs_to :urbanity
  belongs_to :dishwasher_use
  belongs_to :air_conditioner_use
  belongs_to :clothes_machine_use
  
  extend CohortScope
  self.minimum_cohort_size = 5
  SUBCOHORT_THRESHOLD = 5 # per Matt
  
  INPUT_CHARACTERISTICS = [
    :census_region,
    :heating_degree_days,
    :cooling_degree_days,
    :residence_class,
    :rooms,
    :bedrooms,
    :bathrooms,
    :floorspace,
    :residents,
    :urbanity,
    :construction_year,
    :ownership,
  ]
  
  data_miner do
    tap "Brighter Planet's sanitized RECS 2005", Earth.taps_server

    process "pull dependencies" do
      run_data_miner_on_belongs_to_associations
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
earth-0.3.0 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.14 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.13 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.12 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.11 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.9 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.8 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.7 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.6 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.5 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.4 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-ruby19-0.2.3 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.3 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.2 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.1 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.2.0 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.1.4 lib/earth/residence/residential_energy_consumption_survey_response.rb
earth-0.1.3 lib/earth/residence/residential_energy_consumption_survey_response.rb