Sha256: 30ae92715c30575667e55a853730941ebc921bb28f228b043af5f3d6b41918a2
Contents?: true
Size: 420 Bytes
Versions: 28
Compression:
Stored size: 420 Bytes
Contents
module Workarea class Segment module Rules class Revenue < Base field :minimum, type: Money field :maximum, type: Money def qualifies?(visit) return false if minimum.blank? && maximum.blank? (minimum.blank? || visit.metrics.revenue.to_m >= minimum) && (maximum.blank? || visit.metrics.revenue.to_m <= maximum) end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems