Class: Linguin::BulkLanguageDetection

Inherits:
LanguageDetection show all
Defined in:
lib/linguin/bulk_language_detection.rb

Overview

Linguin::BulkLanguageDetection

Returned by Linguin#detect_language(!) when called with an array of strings.

#success? - Bool - checks if detection results were found #error - Hash - contains ‘error` and `message` about what went wrong #results - Array - contains the detection results for each text, ordered by confidence descending

Constant Summary

Constants inherited from BaseResponse

Linguin::BaseResponse::CODE_MAP

Instance Attribute Summary

Attributes inherited from LanguageDetection

#results, #success

Attributes inherited from BaseResponse

#error

Method Summary

Methods inherited from LanguageDetection

error, success, #success?

Methods inherited from BaseResponse

from_httparty, #initialize, #raise_on_error!

Constructor Details

This class inherits a constructor from Linguin::BaseResponse