2017-09-03 03:10:10 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class REST::MuteSerializer < ActiveModel::Serializer
|
|
|
|
include RoutingHelper
|
2023-04-09 18:25:30 +09:00
|
|
|
|
2017-09-03 03:10:10 +09:00
|
|
|
attributes :id, :account, :target_account, :created_at, :hide_notifications
|
|
|
|
|
|
|
|
def account
|
|
|
|
REST::AccountSerializer.new(object.account)
|
|
|
|
end
|
|
|
|
|
|
|
|
def target_account
|
|
|
|
REST::AccountSerializer.new(object.target_account)
|
|
|
|
end
|
2023-04-09 18:25:30 +09:00
|
|
|
end
|