class NodeOngoingSetter < SimpleDelegator
  attr_reader :obj
  def process
    @obj = __getobj__
    @obj.process if obj.respond_to?(:process)
    run_action!
  end

  def run_action!
    obj.ongoing = false if obj.ended_at.present?
  end
end

