Sha256: 237e35e494bdfd5841bfa844c1c6b88acb6a34b511dde9fbf1756d01dd29310e

Contents?: true

Size: 417 Bytes

Versions: 43

Compression:

Stored size: 417 Bytes

Contents

class IndustrySector < ActiveRecord::Base
  extend Earth::Base
  set_primary_key :row_hash
  
  belongs_to :industry,  :foreign_key => 'naics_code'
  belongs_to :sector,    :foreign_key => 'io_code'

  def self.schema_definition
    lambda do
      string 'row_hash'
      string 'naics_code'
      float  'ratio'
      string 'io_code'
    end
  end

  data_miner do
    IndustrySector.define_schema(self)
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
earth-0.3.8 lib/earth/industry/industry_sector.rb
earth-0.3.7 lib/earth/industry/industry_sector.rb
earth-0.3.6 lib/earth/industry/industry_sector.rb
earth-0.3.5 lib/earth/industry/industry_sector.rb
earth-0.3.4 lib/earth/industry/industry_sector.rb
earth-0.3.3 lib/earth/industry/industry_sector.rb
earth-0.3.2 lib/earth/industry/industry_sector.rb
earth-0.3.1 lib/earth/industry/industry_sector.rb
earth-0.3.0 lib/earth/industry/industry_sector.rb
earth-0.2.14 lib/earth/industry/industry_sector.rb
earth-0.2.13 lib/earth/industry/industry_sector.rb
earth-0.2.12 lib/earth/industry/industry_sector.rb
earth-0.2.11 lib/earth/industry/industry_sector.rb
earth-0.2.9 lib/earth/industry/industry_sector.rb
earth-0.2.8 lib/earth/industry/industry_sector.rb
earth-0.2.7 lib/earth/industry/industry_sector.rb
earth-0.2.6 lib/earth/industry/industry_sector.rb
earth-0.2.5 lib/earth/industry/industry_sector.rb
earth-0.2.4 lib/earth/industry/industry_sector.rb
earth-ruby19-0.2.3 lib/earth/industry/industry_sector.rb