Sha256: f58e4d47dd46fb769a2e8886fb44ba2086b1ea64871000b4c82f06ddb1032f19

Contents?: true

Size: 601 Bytes

Versions: 13

Compression:

Stored size: 601 Bytes

Contents

require 'data_miner'

module BrighterPlanet
  module Purchase
    module Data
      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
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
purchase-1.0.15 lib/purchase/data.rb
purchase-1.0.14 lib/purchase/data.rb
purchase-1.0.13 lib/purchase/data.rb
purchase-1.0.12 lib/purchase/data.rb
purchase-1.0.11 lib/purchase/data.rb
purchase-1.0.10 lib/purchase/data.rb
purchase-1.0.9 lib/purchase/data.rb
purchase-1.0.8 lib/purchase/data.rb
purchase-1.0.7 lib/purchase/data.rb
purchase-1.0.6 lib/purchase/data.rb
purchase-1.0.5 lib/purchase/data.rb
purchase-1.0.4 lib/purchase/data.rb
purchase-1.0.3 lib/purchase/data.rb