Sha256: 3869d9e749e1e1ea7e8bf596183648fef952884350d835d549c0346918e09590

Contents?: true

Size: 355 Bytes

Versions: 41

Compression:

Stored size: 355 Bytes

Contents

class Sector < ActiveRecord::Base
  extend Earth::Base
  set_primary_key :io_code

  has_many :industry_sectors, :foreign_key => 'io_code'
  
  def self.schema_definition
    lambda do
      string 'io_code'
      string 'description'
      float  'value'
      string 'value_units'
    end
  end

  data_miner do
    Sector.define_schema(self)
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
earth-0.5.0 lib/earth/industry/sector.rb
earth-0.4.12 lib/earth/industry/sector.rb
earth-0.4.11 lib/earth/industry/sector.rb
earth-0.4.10 lib/earth/industry/sector.rb
earth-0.4.9 lib/earth/industry/sector.rb
earth-0.4.8 lib/earth/industry/sector.rb
earth-0.4.7 lib/earth/industry/sector.rb
earth-0.4.6 lib/earth/industry/sector.rb
earth-0.4.5 lib/earth/industry/sector.rb
earth-0.4.4 lib/earth/industry/sector.rb
earth-0.4.3 lib/earth/industry/sector.rb
earth-0.4.2 lib/earth/industry/sector.rb
earth-0.4.1 lib/earth/industry/sector.rb
earth-0.4.0 lib/earth/industry/sector.rb
earth-0.3.15 lib/earth/industry/sector.rb
earth-0.3.14 lib/earth/industry/sector.rb
earth-0.3.13 lib/earth/industry/sector.rb
earth-0.3.11 lib/earth/industry/sector.rb
earth-0.3.10 lib/earth/industry/sector.rb
earth-0.3.9 lib/earth/industry/sector.rb