Sha256: d40c08a253087dba64cc8a1676590d5de4ad81cd27eabab6f0d0b5e89ff1f8b1

Contents?: true

Size: 337 Bytes

Versions: 9

Compression:

Stored size: 337 Bytes

Contents

module DeepL
  module Resources
    class Text < Base
      attr_reader :text, :detected_source_language

      def initialize(text, detected_source_language, *args)
        super(*args)

        @text = text
        @detected_source_language = detected_source_language
      end

      def to_s
        text
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
deepl-rb-2.2.2 lib/deepl/resources/text.rb
deepl-rb-2.2.1 lib/deepl/resources/text.rb
deepl-rb-2.2.0 lib/deepl/resources/text.rb
deepl-rb-2.1.0 lib/deepl/resources/text.rb
deepl-rb-2.0.0 lib/deepl/resources/text.rb
deepl-rb-1.0.1 lib/deepl/resources/text.rb
deepl-rb-1.0.0 lib/deepl/resources/text.rb
deepl-rb-0.0.1 lib/deepl/resources/text.rb
deepl-rb-0.0.0 lib/deepl/resources/text.rb