google_search_results 0.2.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google_search_results.rb +10 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: feaca1e28d95b0808fb48c4071621544d402c032
4
- data.tar.gz: 8bbe22d3aea6b7824a1b9a46a806d3ff5a80f45c
3
+ metadata.gz: 15ac4beb68362b08d497378e24cd178ec7f12253
4
+ data.tar.gz: d27a8cc17b98290c3330a3592e35d7745647093b
5
5
  SHA512:
6
- metadata.gz: 45b4eac6e1e4c1ad097bb0f65cb98c70c61a780580eea320a75d410ec51679806da38d7300c8948bf993da818733d79cd07ac73be35a5385e8ec78abe4362903
7
- data.tar.gz: e443121731de866c2db6404fe6633a595df0e40a181b3522bd7a5c7ac8258722dd975a991e5629e7035a2b3e306119269ca3af6aa6e0c7a6317d7b2ea6f37116
6
+ metadata.gz: 2ec3f13e5e4c232c4c14308c87ce03a6e5bd9a876c2c3e50f5fc91c029767f97d1a05e524d78354a2878c52e0d4807794e57b3dc0ea9a12b6709d99097ee403e
7
+ data.tar.gz: de5fd3ec6ae4ab91058f536377a46bb8c46d9ed950b761dcc508c551c70ac197f6995440546008f40903be70de254b52937e9c17320218725500f0dcd5655dcb
@@ -6,7 +6,7 @@ require_relative 'google_search_results/hash'
6
6
 
7
7
  class GoogleSearchResults
8
8
 
9
- VERSION = "0.2.0"
9
+ VERSION = "1.0.0"
10
10
  BACKEND = "serpapi.com"
11
11
 
12
12
  @@serp_api_key = nil
@@ -51,8 +51,17 @@ class GoogleSearchResults
51
51
  get_results
52
52
  end
53
53
 
54
+ def get_json_with_images
55
+ @params[:output] = "json_with_images"
56
+ get_results
57
+ end
58
+
54
59
  def get_hash
55
60
  JSON.load(get_json).symbolize_all_keys
56
61
  end
57
62
 
63
+ def get_hash_with_images
64
+ JSON.load(get_json_with_images).symbolize_all_keys
65
+ end
66
+
58
67
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_search_results
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - hartator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-22 00:00:00.000000000 Z
11
+ date: 2017-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake