Sha256: 99dd0f0920556059c835b7500a7fc7d33fe59791a29e39bd0f1b55b9997f8a98
Contents?: true
Size: 209 Bytes
Versions: 4
Compression:
Stored size: 209 Bytes
Contents
module Kosher class Book < Struct.new(:venue, :isbn, :asin, :offers_total, :offers) def best_kosher_offer offer = offers.sort.first (offer && offer.kosher?) ? offer : nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kosher-0.2.24 | lib/kosher/book.rb |
kosher-0.2.23 | lib/kosher/book.rb |
kosher-0.2.22 | lib/kosher/book.rb |
kosher-0.2.21 | lib/kosher/book.rb |