Sha256: 256d6b4d4eaaec9ea122b62bb44a11c88780983c1ef0a3545653b82ad30010ac

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 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

1 entries across 1 versions & 1 rubygems

Version Path
earth-0.2.1 lib/earth/industry/merchant_category.rb