yandex_dictionary_api 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f9c835b9cc0741f42dba426d310bfaa77121474
4
- data.tar.gz: f878976334d57a150fdca6275d6c4c071d594855
3
+ metadata.gz: feed47b5e5ff6e1f955f0adfaa22153abd9cf3f3
4
+ data.tar.gz: b8419a15096742dcd4bf4bf43476d59821d7f9f0
5
5
  SHA512:
6
- metadata.gz: affb3812762a9beb034d7ee85a36c6673d5278e584eab97eb65dd0ad55f2ddf593eb72390dbd824dc8c63e10768385fe37af89bd160b14b9114167e705a7ccd6
7
- data.tar.gz: d42a05377318ef4e00d17db55679a3466bf25f99530267b5c9ff54bab0d0732ef310b61061e71acb79dab03f06281edcf91ddc3f97e4461cce38243642427531
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)
@@ -1,3 +1,3 @@
1
1
  module YandexDictionaryApi
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yandex_dictionary_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - IronSerj