Sha256: d4c7ea421a3dae05344699616daad4eec4e48853ab494f9153fe06bd4225a0ee

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

module TranslatorText
  module Types
    class DetectionResult < 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

      attribute :alternatives, Types::Array.of(Alternative)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translator-text-0.1.0 lib/translator_text/types/detection_result.rb