Sha256: 69b805ba443fdaf1c05d815b8f5bd2152f0490a745b026e9423c8574da34abac
Contents?: true
Size: 244 Bytes
Versions: 24
Compression:
Stored size: 244 Bytes
Contents
module Kosher class Shipping < Struct.new(:cents, :currency, :availability) def free? cents.to_i == 0 end def kosher? availability.kosher? end def cost Money.new(cents.to_i, currency) end end end
Version data entries
24 entries across 24 versions & 1 rubygems