Sha256: 7e0afd66c7265910d096a03e72df8755505c645576b8072c2e638f1fc8a8be2d

Contents?: true

Size: 312 Bytes

Versions: 59

Compression:

Stored size: 312 Bytes

Contents

class Merchant < ActiveRecord::Base
  extend Earth::Base
  set_primary_key :id
  
  belongs_to :merchant_category, :foreign_key => 'mcc'

  def self.schema_definition
    lambda do
      string 'id'
      string 'name'
      string 'mcc'
    end
  end

  data_miner do
    Merchant.define_schema(self)
  end
end

Version data entries

59 entries across 59 versions & 2 rubygems

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