Class: Dilki::Client
- Inherits:
-
Configuration
- Object
- Configuration
- Dilki::Client
- Defined in:
- lib/dilki.rb
Instance Method Summary collapse
Methods inherited from Configuration
Constructor Details
This class inherits a constructor from Dilki::Configuration
Instance Method Details
#detect(text) ⇒ Object
16 17 18 19 |
# File 'lib/dilki.rb', line 16 def detect(text) data = ::Methods::DetectLangs.run(api_key, text) data['lang'] end |