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.3.8 lib/earth/industry/merchant.rb
earth-0.3.7 lib/earth/industry/merchant.rb
earth-0.3.6 lib/earth/industry/merchant.rb
earth-0.3.5 lib/earth/industry/merchant.rb
earth-0.3.4 lib/earth/industry/merchant.rb
earth-0.3.3 lib/earth/industry/merchant.rb
earth-0.3.2 lib/earth/industry/merchant.rb
earth-0.3.1 lib/earth/industry/merchant.rb
earth-0.3.0 lib/earth/industry/merchant.rb
earth-0.2.14 lib/earth/industry/merchant.rb
earth-0.2.13 lib/earth/industry/merchant.rb
earth-0.2.12 lib/earth/industry/merchant.rb
earth-0.2.11 lib/earth/industry/merchant.rb
earth-0.2.9 lib/earth/industry/merchant.rb
earth-0.2.8 lib/earth/industry/merchant.rb
earth-0.2.7 lib/earth/industry/merchant.rb
earth-0.2.6 lib/earth/industry/merchant.rb
earth-0.2.5 lib/earth/industry/merchant.rb
earth-0.2.4 lib/earth/industry/merchant.rb
earth-ruby19-0.2.3 lib/earth/industry/merchant.rb