Class: Mugen::Service

Inherits:
Client
  • Object
show all
Defined in:
lib/mugen/service.rb

Class Method Summary collapse

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(options={})
  res = self.get "/translate/service/language_pairs", :query => options
  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(options={})
  res = self.get "/translate/service/languages", :query => options
  check_for_errors(res)
  res['response']
end