module TranslatorText
Constants
- VERSION
Attributes
client[W]
Public Class Methods
client()
click to toggle source
# File lib/translator-text.rb, line 10 def client @client ||= build_client end
Private Class Methods
build_client()
click to toggle source
# File lib/translator-text.rb, line 16 def build_client TranslatorText::Client.new(ENV.fetch('COGNITIVE_SUBSCRIPTION_KEY')) end