Module: FunTranslations
- Defined in:
- lib/fun_translations.rb,
lib/fun_translations/error.rb,
lib/fun_translations/client.rb,
lib/fun_translations/request.rb,
lib/fun_translations/version.rb,
lib/fun_translations/connection.rb,
lib/fun_translations/translation.rb
Overview
This is a Ruby client that enables you to easily perform translations using FunTranslations API:
client = FunTranslations.client
translation_yoda = client.translate :yoda, "Hello, my padawan"
translation_yoda.translated_text
Defined Under Namespace
Modules: Connection, Request Classes: Client, Error, Translation
Constant Summary collapse
- VERSION =
'0.0.1'
Class Method Summary collapse
-
.client(token = nil) ⇒ FunTranslations::Client
Initializes a new Client object.
Class Method Details
.client(token = nil) ⇒ FunTranslations::Client
Initializes a new Client object
21 22 23 |
# File 'lib/fun_translations.rb', line 21 def client(token = nil) FunTranslations::Client.new token end |