module ActiveModel::Serializer::Type::ClassMethods

def type(type)

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