Sha256: 4d99f51ea9d90f5808e80860034b304504d96ee30436e9636b4695ca1be96fba

Contents?: true

Size: 208 Bytes

Versions: 3

Compression:

Stored size: 208 Bytes

Contents

module Kosher
  class Condition < Structure
    key :description
    key :grade
    key :kosher, default: false

    def kosher?
      Boolean(kosher)
    end

    def new?
      grade == 1
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kosher-0.17.2 lib/kosher/condition.rb
kosher-0.17.1 lib/kosher/condition.rb
kosher-0.17.0 lib/kosher/condition.rb