Class: Wordchuck::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/wordchuck/client.rb

Class Method Summary collapse

Class Method Details

.get_locale(locale) {|rh| ... } ⇒ Object

Yields:

  • (rh)


27
28
29
30
31
# File 'lib/wordchuck/client.rb', line 27

def get_locale(locale)
  rh = submit_request("/v1/project/content/#{locale}")
  yield(rh) if (not rh.nil?) && block_given?
  rh
end

.get_locales {|rh| ... } ⇒ Object

Yields:

  • (rh)


21
22
23
24
25
# File 'lib/wordchuck/client.rb', line 21

def get_locales
  rh = submit_request('/v1/project/locales')
  yield(rh) if (not rh.nil?) && block_given?
  rh
end