class Translator::Smartling::TokenGenerator

Public Class Methods

client() click to toggle source
# File lib/nexmo_developer/app/services/translator/smartling/token_generator.rb, line 4
def self.client
  @client ||= ::Smartling::Api.new(
    userId: ENV['SMARTLING_USER_ID'],
    userSecret: ENV['SMARTLING_USER_SECRET']
  )
end
token() click to toggle source
# File lib/nexmo_developer/app/services/translator/smartling/token_generator.rb, line 11
def self.token
  @token ||= client.token
end