translation.rb 400 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class Translation < ActiveModelSerializers::Model
  3. attributes :status, :detected_source_language, :language, :provider,
  4. :content, :spoiler_text, :poll_options, :media_attachments
  5. class Option < ActiveModelSerializers::Model
  6. attributes :title
  7. end
  8. class MediaAttachment < ActiveModelSerializers::Model
  9. attributes :id, :description
  10. end
  11. end