Class: Methods::DetectLangs

Inherits:
Object
  • Object
show all
Defined in:
lib/methods/detect.rb

Class Method Summary collapse

Class Method Details

.run(api_key, text) ⇒ Object



4
5
6
# File 'lib/methods/detect.rb', line 4

def self.run(api_key, text)
 Api.post(path, {key: api_key, text: text, format: 'json'})
end