Module: BrighterPlanet::Purchase::Data

Defined in:
lib/purchase/data.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/purchase/data.rb', line 6

def self.included(base)
  base.data_miner do
    schema do
      float   'cost'
      string  'cost_units'
      float   'purchase_amount'
      string  'purchase_amount_units'
      float   'tax'
      string  'tax_units'
      date    'date'
      string  'merchant_id'
      string  'mcc'
      string  'naics_code'
    end
    
    process :run_data_miner_on_belongs_to_associations
  end
end