class DetectLanguage::Configuration
- DetectLanguage::Configuration
- Reference
- Object
Defined in:
detect_language/configuration.crConstructors
Instance Method Summary
-
#[](option)
Allows config options to be read like a hash
-
#api_key : String
The API key for your project, found on your homepage after you login into detectlanguage.com website Defaults to 'demo', which has a limited number of requests.
-
#api_key=(api_key : String)
The API key for your project, found on your homepage after you login into detectlanguage.com website Defaults to 'demo', which has a limited number of requests.
-
#api_version : String
The API version you are using (defaults to 0.2).
-
#api_version=(api_version : String)
The API version you are using (defaults to 0.2).
-
#host : String
The host to connect to (defaults to ws.detectlanguage.com).
-
#host=(host : String)
The host to connect to (defaults to ws.detectlanguage.com).
-
#port
The port on which your DetectLanguage server runs (defaults to 443 for secure connections, 80 for insecure connections).
-
#port=(port : Int32)
The port on which your DetectLanguage server runs (defaults to 443 for secure connections, 80 for insecure connections).
-
#secure : Bool
+true+ for https connections, +false+ for http connections.
-
#secure=(secure : Bool)
+true+ for https connections, +false+ for http connections.
-
#user_agent : String
HTTP request user agent (defaults to 'Detect Language API ruby gem').
-
#user_agent=(user_agent : String)
HTTP request user agent (defaults to 'Detect Language API ruby gem').
Constructor Detail
Instance Method Detail
Allows config options to be read like a hash
@param [Symbol] option Key for a given attribute
The API key for your project, found on your homepage after you login into detectlanguage.com website Defaults to 'demo', which has a limited number of requests.
The API key for your project, found on your homepage after you login into detectlanguage.com website Defaults to 'demo', which has a limited number of requests.
The port on which your DetectLanguage server runs (defaults to 443 for secure connections, 80 for insecure connections).
The port on which your DetectLanguage server runs (defaults to 443 for secure connections, 80 for insecure connections).
HTTP request user agent (defaults to 'Detect Language API ruby gem').