Sha256: 2370050e05074cf6a3d1cd0d3710b688127813ca92498ae5144b537163d1bf63

Contents?: true

Size: 368 Bytes

Versions: 9

Compression:

Stored size: 368 Bytes

Contents

# 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

9 entries across 9 versions & 1 rubygems

Version Path
deepl-rb-2.5.3 lib/deepl/resources/text.rb
deepl-rb-2.5.2 lib/deepl/resources/text.rb
deepl-rb-2.5.1 lib/deepl/resources/text.rb
deepl-rb-2.5.0 lib/deepl/resources/text.rb
deepl-rb-2.4.0 lib/deepl/resources/text.rb
deepl-rb-2.3.1 lib/deepl/resources/text.rb
deepl-rb-2.3.0 lib/deepl/resources/text.rb
deepl-rb-2.2.4 lib/deepl/resources/text.rb
deepl-rb-2.2.3 lib/deepl/resources/text.rb