Sha256: 1c4659a519a46f882d1b0923365d492b2eb16c5bb036d2599e4f1047f0070389

Contents?: true

Size: 425 Bytes

Versions: 42

Compression:

Stored size: 425 Bytes

Contents

class MerchantCategory < ActiveRecord::Base
  extend Earth::Base
  set_primary_key :mcc

  has_many :merchant_category_industries, :foreign_key => 'mcc'
  has_many :industries, :through => :merchant_category_industries

  def name
    description
  end

  def self.schema_definition
    lambda do
      string 'mcc'
      string 'description'
    end
  end

  data_miner do
    MerchantCategory.define_schema(self)
  end
end

Version data entries

42 entries across 42 versions & 2 rubygems

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