lib/kosher/book.rb in kosher-0.2.15 vs lib/kosher/book.rb in kosher-0.2.16
- old
+ new
@@ -1,6 +1,6 @@
module Kosher
- class Book < Struct.new(:venue, :isbn, :asin, :sales_rank, :offers_count, :offers, :created_at)
+ class Book < Struct.new(:venue, :isbn, :asin, :sales_rank, :offers_total, :offers, :created_at)
def best_kosher_offer
offer = offers.sort.first
offer.kosher? ? offer : nil
end