2022-09-24 06:00:12 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class REST::TranslationSerializer < ActiveModel::Serializer
|
2022-10-25 01:37:57 +09:00
|
|
|
attributes :content, :detected_source_language, :provider
|
2022-09-24 06:00:12 +09:00
|
|
|
|
|
|
|
def content
|
|
|
|
object.text
|
|
|
|
end
|
|
|
|
end
|