Sha256: 29ad77e07b1979d2f21b5b7342a158c9352e8ea9b0e89d0dea379e0e8595e9ec

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

# frozen_string_literal: true

module TranslatorText
  module Types
    class Alternative < Dry::Struct
      include Types::JSON

      transform_keys(&:to_sym)

      attribute :language, Types::Symbol
      attribute :score, Types::Float
      attribute :isTranslationSupported, Types::Bool
      attribute :isTransliterationSupported, Types::Bool
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
translator-text-0.3.1 lib/translator_text/types/alternative.rb
translator-text-0.3.0 lib/translator_text/types/alternative.rb