This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2018-06-29 09:34:36 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class REST::FilterSerializer < ActiveModel::Serializer
|
2018-07-08 20:22:09 -04:00
|
|
|
attributes :id, :phrase, :context, :whole_word, :expires_at,
|
2018-07-07 12:51:45 -04:00
|
|
|
:irreversible
|
2018-11-19 04:37:57 -05:00
|
|
|
|
|
|
|
def id
|
|
|
|
object.id.to_s
|
|
|
|
end
|
2018-06-29 09:34:36 -04:00
|
|
|
end
|