about summary refs log tree commit diff
path: root/app/serializers/rest/translation_serializer.rb
blob: 05ededc95c97a051a881492fab224e8bfe498eeb (plain) (blame)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

class REST::TranslationSerializer < ActiveModel::Serializer
  attributes :content, :detected_source_language, :provider

  def content
    object.text
  end
end