4 5 6
# File 'lib/methods/translate.rb', line 4 def self.run(api_key, text, from, to) Api.post(path,{key: api_key, lang: "#{from}-#{to}", text: text, format: 'json'}) end