Sha256: 7115e2ad55e5293de190a3b05c8b4225e87f295193e26bd646876b24000041b2

Contents?: true

Size: 512 Bytes

Versions: 4

Compression:

Stored size: 512 Bytes

Contents

# Copyright 2022 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 LanguagePair < Base
      attr_reader :source_lang, :target_lang

      def initialize(source_lang, target_lang, *args)
        super(*args)

        @source_lang = source_lang
        @target_lang = target_lang
      end

      def to_s
        "#{source_lang} - #{target_lang}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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