Sha256: afb7ce1b1a002b78e179053179a7873eb2becefee7f3ace34f9c0dcaf7b4113b
Contents?: true
Size: 319 Bytes
Versions: 1
Compression:
Stored size: 319 Bytes
Contents
module Kosher class Unit < Structure include Base include Price key :condition, Integer key :description, String key :quantity, Integer, :default => 1 validates_inclusion_of :condition, :in => 1..6 def new? condition == 1 end def used? !new? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kosher-0.11.0 | lib/kosher/unit.rb |