Sha256: 8cebb0dff16307fdb4ffe1e575d5718223d4212fb0e656576b00fac742d63e9d

Contents?: true

Size: 401 Bytes

Versions: 19

Compression:

Stored size: 401 Bytes

Contents

class MerchantCategory < ActiveRecord::Base
  set_primary_key :mcc

  has_many :merchant_categories_industries, :foreign_key => 'mcc', :class_name => 'MerchantCategoriesIndustries'
  has_many :industries, :through => :merchant_categories_industries

  def name
    description
  end

  data_miner do
    schema Earth.database_options do
      string 'mcc'
      string 'description'
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
earth-0.0.43 lib/earth/industry/merchant_category.rb
earth-0.0.42 lib/earth/industry/merchant_category.rb
earth-0.0.41 lib/earth/industry/merchant_category.rb
earth-0.0.40 lib/earth/industry/merchant_category.rb
earth-0.0.39 lib/earth/industry/merchant_category.rb
earth-0.0.38 lib/earth/industry/merchant_category.rb
earth-0.0.37 lib/earth/industry/merchant_category.rb
earth-0.0.36 lib/earth/industry/merchant_category.rb
earth-0.0.35 lib/earth/industry/merchant_category.rb
earth-0.0.34 lib/earth/industry/merchant_category.rb
earth-0.0.33 lib/earth/industry/merchant_category.rb
earth-0.0.32 lib/earth/industry/merchant_category.rb
earth-0.0.31 lib/earth/industry/merchant_category.rb
earth-0.0.30 lib/earth/industry/merchant_category.rb
earth-0.0.29 lib/earth/industry/merchant_category.rb
earth-0.0.28 lib/earth/industry/merchant_category.rb
earth-0.0.27 lib/earth/industry/merchant_category.rb
earth-0.0.26 lib/earth/industry/merchant_category.rb
earth-0.0.24 lib/earth/industry/merchant_category.rb