lib/kosher/book.rb in kosher-0.2.20 vs lib/kosher/book.rb in kosher-0.2.21

- old
+ new

@@ -1,6 +1,7 @@ module Kosher - class Book < Struct.new(:venue, :isbn, :asin, :sales_rank, :offers_total, :offers, :created_at) + class Book < Struct.new(:venue, :isbn, :asin, :offers_total, :offers) + def best_kosher_offer offer = offers.sort.first (offer && offer.kosher?) ? offer : nil end