lib/purchase/characterization.rb in purchase-0.0.2 vs lib/purchase/characterization.rb in purchase-0.0.3
- old
+ new
@@ -4,19 +4,18 @@
module Purchase
module Characterization
def self.included(base)
base.send :include, Characterizable
base.characterize do
- has :merchant do |merchant|
- merchant.reveals :merchant_category
- end
- has :industry
- has :product_line
- has :io_sector
+ has :merchant
+ has :merchant_category
+ has :industry_shares
+ has :product_line_shares
+ has :sector_shares
has :purchase_amount # full purchase amount
has :tax # tax portion of purchase
has :cost # cost before tax
- has :line_item
+ has :line_item # text describing what was purchased
has :customer_code
has :zip_code
has :date
end
end