fedibird-fe/app/serializers/rest/keyword_subscribes_serializer.rb
2021-08-12 07:08:36 +09:00

9 lines
252 B
Ruby

# frozen_string_literal: true
class REST::KeywordSubscribesSerializer < ActiveModel::Serializer
attributes :id, :name, :keyword, :exclude_keyword, :ignorecase, :regexp, :ignore_block, :disabled, :exclude_home
def id
object.id.to_s
end
end