yandex_dictionary_api 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yandex_dictionary_api/article.rb +10 -0
- data/lib/yandex_dictionary_api/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: feed47b5e5ff6e1f955f0adfaa22153abd9cf3f3
|
4
|
+
data.tar.gz: b8419a15096742dcd4bf4bf43476d59821d7f9f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9198104a425332d50104793b2e405e01b499b34b19650cff5f3e6ad5fb6bf7ba01260c5ba081e954a0d364cacc19e09f9f39d6bcdb74fe8d0a436955ce6f463
|
7
|
+
data.tar.gz: 37238cefd2430b7ed730e774858da9b78e1dbbde948a2da886c4c923b8accb80a8aa67f995d1df0df1b493cce537dc1a2d44c91e700c9487868060a4369f60f3
|
@@ -58,6 +58,16 @@ module YandexDictionaryApi
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
+
def to_hash
|
62
|
+
res = Hash.new
|
63
|
+
res["text"] = @text
|
64
|
+
res["translations"] = @translations
|
65
|
+
res["synonyms"] = @synonyms
|
66
|
+
res["means"] = @means
|
67
|
+
res["examples"] = @examples
|
68
|
+
res
|
69
|
+
end
|
70
|
+
|
61
71
|
protected
|
62
72
|
|
63
73
|
def read_array(array, data_kind)
|