module ActiveModel::Serializer::Type::ClassMethods
def type(type)
class AdminAuthorSerializer < ActiveModel::Serializer
@example
Set the JSON API type of a serializer.
def type(type) self._type = type && type.to_s end
def type(type) self._type = type && type.to_s end