lib/kosher/offer.rb in kosher-0.6.2 vs lib/kosher/offer.rb in kosher-0.7.0
- old
+ new
@@ -1,10 +1,8 @@
module Kosher
# An offer.
- #
- # This is an actual item offered on a particular venue by a seller.
class Offer < Structure
include Comparable
key :id
has_one :venue
@@ -31,9 +29,9 @@
item.kosher? && seller.kosher? && shipping.kosher?
end
# The total price of an offer.
def price
- item.price + shipping.cost
+ item.price.to_money + shipping.cost.to_money
end
end
end