Module: GoogleTranslateDiff

Defined in:
lib/google_translate_diff.rb,
lib/google_translate_diff/version.rb

Defined Under Namespace

Classes: Cache, Chunker, Linearizer, RedisCacheStore, RedisRateLimiter, Request, Spacing, Tokenizer

Constant Summary collapse

CACHE_NAMESPACE =
"google-translate-diff".freeze
VERSION =
"1.0.11".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.apiObject

Returns the value of attribute api.



18
19
20
# File 'lib/google_translate_diff.rb', line 18

def api
  @api
end

.cache_storeObject

Returns the value of attribute cache_store.



19
20
21
# File 'lib/google_translate_diff.rb', line 19

def cache_store
  @cache_store
end

.rate_limiterObject

Returns the value of attribute rate_limiter.



20
21
22
# File 'lib/google_translate_diff.rb', line 20

def rate_limiter
  @rate_limiter
end

Class Method Details

.translate(*args) ⇒ Object



22
23
24
# File 'lib/google_translate_diff.rb', line 22

def translate(*args)
  Request.new(*args).call
end