Sha256: c92cac9595d9ce7e1d640df063d0765b007b81ce91efec4c4fbabc5ddf738d2e

Contents?: true

Size: 499 Bytes

Versions: 3

Compression:

Stored size: 499 Bytes

Contents

# Copyright 2018 Daniel Herzog
# Use of this source code is governed by an MIT
# license that can be found in the LICENSE.md file.
# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
deepl-rb-3.0.2 lib/deepl/resources/text.rb
deepl-rb-3.0.1 lib/deepl/resources/text.rb
deepl-rb-3.0.0 lib/deepl/resources/text.rb