Sha256: f01378db49c4d0a0dceb822b83537ee1f99674d3f524a2241c2fef8104b708b3
Contents?: true
Size: 521 Bytes
Versions: 2
Compression:
Stored size: 521 Bytes
Contents
# frozen_string_literal: true require_relative 'translator_text/version' require_relative 'translator_text/exceptions' require_relative 'translator_text/client' require_relative 'translator_text/types' module TranslatorText class << self attr_writer :client def client @client ||= build_client end private def build_client TranslatorText::Client.new( ENV.fetch('COGNITIVE_SUBSCRIPTION_KEY'), ENV.fetch('COGNITIVE_SUBSCRIPTION_REGION', nil) ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
translator-text-0.3.1 | lib/translator-text.rb |
translator-text-0.3.0 | lib/translator-text.rb |