tongues 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tongues/api_connexion.rb +0 -10
- data/lib/tongues/config/configuration.rb +10 -0
- data/lib/tongues/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f4e3a0acae7988ff9f24b1b16b3c247e15a3064
|
4
|
+
data.tar.gz: 032219a331050e0121a136755dff9b4dbe2df14c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 763f84c82935ee0092574b6b77130766751d758d53a20fc2d9c2dbc88e14adeda593256db613976f08d1d7cf23716465c91f881eae190a7bac2793b9db616840
|
7
|
+
data.tar.gz: 70114e1b6191f022e55786fb79ccef2948b47c58067b8e8c470ecd8e9c3812554a1ffb0f9a520c360f61d7d959c6e9ab95f3a2a69e7bdd5f0333ae1f49f17a36
|
@@ -20,6 +20,16 @@ module Tongues
|
|
20
20
|
'http://ws.detectlanguage.com/0.2/detect'
|
21
21
|
end
|
22
22
|
|
23
|
+
## Returns the api key
|
24
|
+
def api_key
|
25
|
+
@@api_key
|
26
|
+
end
|
27
|
+
|
28
|
+
## Modifies the api_key
|
29
|
+
def api_key=(key)
|
30
|
+
@@api_key = key
|
31
|
+
end
|
32
|
+
|
23
33
|
## Returns the api key
|
24
34
|
def self.api_key
|
25
35
|
@@api_key
|
data/lib/tongues/version.rb
CHANGED