Class: Mugen::Service
Class Method Summary collapse
-
.language_pairs(options = {}) ⇒ Object
translate/service/language_pairs (GET).
-
.languages(options = {}) ⇒ Object
translate/service/languages (GET).
Methods inherited from Client
before_get, before_post, before_put, check_for_errors
Class Method Details
.language_pairs(options = {}) ⇒ Object
translate/service/language_pairs (GET)
Returns supported translation language pairs, tiers, and credit prices.
11 12 13 14 15 |
# File 'lib/mugen/service.rb', line 11 def language_pairs(={}) res = self.get "/translate/service/language_pairs", :query => check_for_errors(res) res['response'] end |
.languages(options = {}) ⇒ Object
translate/service/languages (GET)
Returns a list of supported languages and their language codes.
22 23 24 25 26 |
# File 'lib/mugen/service.rb', line 22 def languages(={}) res = self.get "/translate/service/languages", :query => check_for_errors(res) res['response'] end |