2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-11 18:23:18 -04:00
|
|
|
class TopicTimerSerializer < ApplicationSerializer
|
2017-03-21 23:12:02 -04:00
|
|
|
attributes :id,
|
|
|
|
:execute_at,
|
|
|
|
:duration,
|
|
|
|
:based_on_last_post,
|
2017-04-03 05:28:41 -04:00
|
|
|
:status_type,
|
|
|
|
:category_id
|
2017-03-21 23:12:02 -04:00
|
|
|
|
|
|
|
def status_type
|
2017-05-11 18:23:18 -04:00
|
|
|
TopicTimer.types[object.status_type]
|
2017-03-21 23:12:02 -04:00
|
|
|
end
|
|
|
|
end
|