wes-data-api 12.1.0 → 12.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/wes/data/api.rb +1 -1
- data/lib/wes/data/api/results.rb +12 -0
- 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: 442c669e395c7d119fb7565445eaf8ebdc58680e
|
4
|
+
data.tar.gz: 44a1f4bc12f5f6e4ecf76dff02df1ff50e67454a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6518819104f6860c5c08230b060e9dc3fa7300085cf279961b0069c5bba866c30599ca06652a4d4c533c2785f51528991b358469dd80462a7c017de44a0427f4
|
7
|
+
data.tar.gz: 4f4fa7bace1e055478a7b076d4610f7f8599cbca13c755aea935f8bff37e2f2a946cbc2d167750db2c70871830596edcfd9d943a2a2bc396f5e043d40ace6a49
|
data/lib/wes/data/api.rb
CHANGED
data/lib/wes/data/api/results.rb
CHANGED
@@ -18,6 +18,10 @@ module Wes
|
|
18
18
|
@data[val]
|
19
19
|
end
|
20
20
|
|
21
|
+
def any?
|
22
|
+
@data.any?
|
23
|
+
end
|
24
|
+
|
21
25
|
def each(&block)
|
22
26
|
@data.each(&block)
|
23
27
|
end
|
@@ -26,6 +30,10 @@ module Wes
|
|
26
30
|
@data.each_pair(&block)
|
27
31
|
end
|
28
32
|
|
33
|
+
def empty?
|
34
|
+
@data.empty?
|
35
|
+
end
|
36
|
+
|
29
37
|
def last
|
30
38
|
@data.last
|
31
39
|
end
|
@@ -39,6 +47,10 @@ module Wes
|
|
39
47
|
self
|
40
48
|
end
|
41
49
|
|
50
|
+
def to_a
|
51
|
+
@data
|
52
|
+
end
|
53
|
+
|
42
54
|
private
|
43
55
|
|
44
56
|
def parse_response(response)
|