lib/kosher/offer.rb in kosher-0.5.0 vs lib/kosher/offer.rb in kosher-0.6.0

- old
+ new

@@ -4,14 +4,14 @@ # # This is an actual item offered on a particular venue by a seller. class Offer < Structure include Comparable - key :id - key :venue - key :item, :type => Structure - key :seller, :type => Structure - key :shipping, :type => Structure + key :id + has_one :venue + has_one :item + has_one :seller + has_one :shipping # Compares offer with another offer. # # A kosher offer is better than an unkosher offer. If both offers are # kosher or unkosher, a lower-priced offer is better.