Sha256: 6d396bfa86c3c2a1e2550582a9a377f1364dda1f2640ce5ccd76cdf458d2ba6c

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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