Sha256: 61ac620cf823f00a43591c6133124796dcd6eecf4f11cd97b2831fcc32399846
Contents?: true
Size: 299 Bytes
Versions: 3
Compression:
Stored size: 299 Bytes
Contents
module Susply module Calculations def end_period_calculation(start, interval) case interval when 'yearly' start + 1.year when 'monthly' start + 1.month else start + 1.month end end module_function :end_period_calculation end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
susply-1.0.0 | app/services/susply/calculations.rb |
susply-0.0.2 | app/services/susply/calculations.rb |
susply-0.0.1 | app/services/susply/calculations.rb |