Sha256: 645569c4592a6c3268d9d67c4262f07afbb7bbe00f8975c5ce9984e39d616272

Contents?: true

Size: 472 Bytes

Versions: 15

Compression:

Stored size: 472 Bytes

Contents

class IndustriesProductLines < ActiveRecord::Base
  extend Earth::Base
  set_primary_key :row_hash
  
  belongs_to :industry,     :foreign_key => 'naics_code'
  belongs_to :product_line, :foreign_key => 'ps_code'

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

  data_miner do
    IndustriesProductLines.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_product_lines.rb
earth-0.1.3 lib/earth/industry/industries_product_lines.rb
earth-0.1.2 lib/earth/industry/industries_product_lines.rb
earth-0.0.43 lib/earth/industry/industries_product_lines.rb
earth-0.0.42 lib/earth/industry/industries_product_lines.rb
earth-0.0.41 lib/earth/industry/industries_product_lines.rb
earth-0.0.40 lib/earth/industry/industries_product_lines.rb
earth-0.0.39 lib/earth/industry/industries_product_lines.rb
earth-0.0.38 lib/earth/industry/industries_product_lines.rb
earth-0.0.37 lib/earth/industry/industries_product_lines.rb
earth-0.0.36 lib/earth/industry/industries_product_lines.rb
earth-0.0.35 lib/earth/industry/industries_product_lines.rb
earth-0.0.34 lib/earth/industry/industries_product_lines.rb
earth-0.0.33 lib/earth/industry/industries_product_lines.rb
earth-0.0.32 lib/earth/industry/industries_product_lines.rb