This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2022-09-23 14:00:12 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class REST::TranslationSerializer < ActiveModel::Serializer
|
2022-10-24 09:37:57 -07:00
|
|
|
attributes :content, :detected_source_language, :provider
|
2022-09-23 14:00:12 -07:00
|
|
|
|
|
|
|
def content
|
|
|
|
object.text
|
|
|
|
end
|
|
|
|
end
|