seekr-ruby 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c4593f70755286c2ea414571c6efde8e93517d0
4
- data.tar.gz: 2c969e76da75aa9021e9ebf58f47ef04cbf1097e
3
+ metadata.gz: 26a96840fb589d49e09ad8bc25b64863f27818f6
4
+ data.tar.gz: 9efd309f68d56181d2459fe6e2d6f2878f280f13
5
5
  SHA512:
6
- metadata.gz: 842fc508a11330c3a6f1791493e0724260f1bec8f2a31548eb4c75b333b0314af78f2e55101af5b70f10dc123f5bac349081090674a29261edb26e7768e28ffc
7
- data.tar.gz: 456e34fbb69be719ba4a70b00a46921cc0f0f29380b5a4151d86e084fe2f66e7e1fcb3a322297736c10a3b74653bc22d37faa3241f93e5820b01ec40d45228f4
6
+ metadata.gz: c913c20f0a3182ff07cb15779acafebc710e8fa01ea07ac1eaca41497df93c12796af31dae4de7c15dabf462340028fc9e30b3e5815c9e598ce3d89ada6f88fb
7
+ data.tar.gz: 7c63fc4715324235c56b11f7769953caac1985f0cfc3573e29a3a6e8db6afb8b1d61a6091a8b1ab0f9feed49c8da30bcd5c6e5380ed6e10e791ec198e05c423c
@@ -8,6 +8,10 @@ module Seekr
8
8
  @monitor_id = monitor_id
9
9
  end
10
10
 
11
+ def all(options={})
12
+ get("/search_results", params.merge(options))
13
+ end
14
+
11
15
  def all_paginated(options={})
12
16
  options[:page] = 1
13
17
  response = get_search_results_json(options)
@@ -23,9 +27,11 @@ module Seekr
23
27
  end
24
28
 
25
29
  private
30
+ attr_reader :monitor_id
31
+
26
32
  def params
27
33
  {
28
- search_id: @monitor_id,
34
+ search_id: monitor_id,
29
35
  per_page: PER_PAGE
30
36
  }
31
37
  end
@@ -1,3 +1,3 @@
1
1
  module Seekr
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seekr-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Pinto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-12 00:00:00.000000000 Z
11
+ date: 2015-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client