Sha256: ec0056bdc4c7d329e066310954fa328fe4286dd25d7e026664d794211543752b
Contents?: true
Size: 411 Bytes
Versions: 28
Compression:
Stored size: 411 Bytes
Contents
module Workarea class Segment module Rules class Orders < Base field :minimum, type: Integer field :maximum, type: Integer def qualifies?(visit) return false if minimum.blank? && maximum.blank? (minimum.blank? || visit.metrics.orders >= minimum) && (maximum.blank? || visit.metrics.orders <= maximum) end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems