class DetectLanguage::Configuration

Defined in:

detect_language/configuration.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def [](option) #

Allows config options to be read like a hash

@param [Symbol] option Key for a given attribute


[View source]
def 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.


[View source]
def 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.


[View source]
def api_version : String #

The API version you are using (defaults to 0.2).


[View source]
def api_version=(api_version : String) #

The API version you are using (defaults to 0.2).


[View source]
def host : String #

The host to connect to (defaults to ws.detectlanguage.com).


[View source]
def host=(host : String) #

The host to connect to (defaults to ws.detectlanguage.com).


[View source]
def port #

The port on which your DetectLanguage server runs (defaults to 443 for secure connections, 80 for insecure connections).


[View source]
def port=(port : Int32) #

The port on which your DetectLanguage server runs (defaults to 443 for secure connections, 80 for insecure connections).


[View source]
def secure : Bool #

+true+ for https connections, +false+ for http connections.


[View source]
def secure=(secure : Bool) #

+true+ for https connections, +false+ for http connections.


[View source]
def user_agent : String #

HTTP request user agent (defaults to 'Detect Language API ruby gem').


[View source]
def user_agent=(user_agent : String) #

HTTP request user agent (defaults to 'Detect Language API ruby gem').


[View source]