Class: MerchantCategory

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
Earth::Base
Defined in:
lib/earth/industry/merchant_category.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Earth::Base

define_schema

Class Method Details

.schema_definitionObject



12
13
14
15
16
17
# File 'lib/earth/industry/merchant_category.rb', line 12

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

Instance Method Details

#nameObject



8
9
10
# File 'lib/earth/industry/merchant_category.rb', line 8

def name
  description
end