Class: Translatomatic::Translator::Frengly
- Defined in:
- lib/translatomatic/translator/frengly.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Frengly
constructor
Create a new Frengly translator instance.
-
#languages ⇒ Array<String>
A list of languages supported by this translator.
Methods inherited from Base
Methods included from Util
Constructor Details
#initialize(options = {}) ⇒ Frengly
Create a new Frengly translator instance
17 18 19 20 21 22 23 24 |
# File 'lib/translatomatic/translator/frengly.rb', line 17 def initialize( = {}) super() @key = [:frengly_api_key] || ENV["FRENGLY_API_KEY"] # optional @email = [:frengly_email] @password = [:frengly_password] raise "email address required" unless @email raise "password required" unless @password end |
Instance Method Details
#languages ⇒ Array<String>
Returns A list of languages supported by this translator.
27 28 29 |
# File 'lib/translatomatic/translator/frengly.rb', line 27 def languages ['en','fr','de','es','pt','it','nl','tl','fi','el','iw','pl','ru','sv'] end |