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 +4 -4
- data/lib/seekr/occurrence.rb +7 -1
- data/lib/seekr/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26a96840fb589d49e09ad8bc25b64863f27818f6
|
4
|
+
data.tar.gz: 9efd309f68d56181d2459fe6e2d6f2878f280f13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c913c20f0a3182ff07cb15779acafebc710e8fa01ea07ac1eaca41497df93c12796af31dae4de7c15dabf462340028fc9e30b3e5815c9e598ce3d89ada6f88fb
|
7
|
+
data.tar.gz: 7c63fc4715324235c56b11f7769953caac1985f0cfc3573e29a3a6e8db6afb8b1d61a6091a8b1ab0f9feed49c8da30bcd5c6e5380ed6e10e791ec198e05c423c
|
data/lib/seekr/occurrence.rb
CHANGED
@@ -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:
|
34
|
+
search_id: monitor_id,
|
29
35
|
per_page: PER_PAGE
|
30
36
|
}
|
31
37
|
end
|
data/lib/seekr/version.rb
CHANGED
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.
|
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
|
+
date: 2015-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|