destination_time.rb 344 B

123456789101112131415
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Escalation
  3. class DestinationTime
  4. def initialize(start_time, span, biz)
  5. @start_time = start_time
  6. @span = span
  7. @biz = biz
  8. end
  9. def destination_time
  10. @biz.time(@span, :minutes).after(@start_time)
  11. end
  12. end
  13. end