Sha256: d2ef23343296530dded3e6e8d66682b5e9fa09dc9efe2794b6e27d42ed3bed72

Contents?: true

Size: 396 Bytes

Versions: 15

Compression:

Stored size: 396 Bytes

Contents

class ProductLinesSectors < ActiveRecord::Base
  extend Earth::Base
  belongs_to :product_line, :foreign_key => 'ps_code'
  belongs_to :sector,       :foreign_key => 'io_code'

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

  data_miner do
    ProductLinesSectors.define_schema(self)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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