Sha256: 8a0ae04521dac1cca78600c689afef7ad2313cdf424fc923494a8ddb4e56e408

Contents?: true

Size: 501 Bytes

Versions: 3

Compression:

Stored size: 501 Bytes

Contents

require 'characterizable'

module BrighterPlanet
  module Purchase
    module Characterization
      def self.included(base)
        base.send :include, Characterizable
        base.characterize do
          has :merchant
          has :merchant_category
          has :naics_code
          has :total           # full purchase amount
          has :tax             # tax portion of purchase
          has :cost            # cost before tax
          has :date
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
purchase-0.1.2 lib/purchase/characterization.rb
purchase-0.1.1 lib/purchase/characterization.rb
purchase-0.1.0 lib/purchase/characterization.rb