Sha256: 4a94f532e791aeb45829955b6ca43132370f07f7851ebce1ca4f1f46dc6a2268
Contents?: true
Size: 222 Bytes
Versions: 5
Compression:
Stored size: 222 Bytes
Contents
module Kosher class Item < Struct.new(:cents, :currency, :condition, :description) def kosher? condition.kosher? && description.kosher? end def price Money.new(cents, currency) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
kosher-0.2.5 | lib/kosher/item.rb |
kosher-0.2.4 | lib/kosher/item.rb |
kosher-0.2.3 | lib/kosher/item.rb |
kosher-0.2.2 | lib/kosher/item.rb |
kosher-0.2.1 | lib/kosher/item.rb |