Sha256: 82676b47d34cc49272cb664adda7cd0f2b480e23577db685ca6a433329bce084

Contents?: true

Size: 368 Bytes

Versions: 15

Compression:

Stored size: 368 Bytes

Contents

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

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

  data_miner do
    IndustriesSectors.define_schema(self)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
earth-0.1.4 lib/earth/industry/industries_sectors.rb
earth-0.1.3 lib/earth/industry/industries_sectors.rb
earth-0.1.2 lib/earth/industry/industries_sectors.rb
earth-0.0.43 lib/earth/industry/industries_sectors.rb
earth-0.0.42 lib/earth/industry/industries_sectors.rb
earth-0.0.41 lib/earth/industry/industries_sectors.rb
earth-0.0.40 lib/earth/industry/industries_sectors.rb
earth-0.0.39 lib/earth/industry/industries_sectors.rb
earth-0.0.38 lib/earth/industry/industries_sectors.rb
earth-0.0.37 lib/earth/industry/industries_sectors.rb
earth-0.0.36 lib/earth/industry/industries_sectors.rb
earth-0.0.35 lib/earth/industry/industries_sectors.rb
earth-0.0.34 lib/earth/industry/industries_sectors.rb
earth-0.0.33 lib/earth/industry/industries_sectors.rb
earth-0.0.32 lib/earth/industry/industries_sectors.rb