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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 792149f2d0cd8331fad05ef9090fa2d258c04523
4
- data.tar.gz: 39a879a70f0647a8cec170d51df2ee24864edfff
3
+ metadata.gz: 442c669e395c7d119fb7565445eaf8ebdc58680e
4
+ data.tar.gz: 44a1f4bc12f5f6e4ecf76dff02df1ff50e67454a
5
5
  SHA512:
6
- metadata.gz: 96ecef0e9eb05bbe1f3d953ee3280475e2a0b542743923b5c5528e073f15c3001874d9862f3542b160b1c8082e798205372b29828bb05b332218067d42dce03e
7
- data.tar.gz: 58e72e55570bc850fe7d88f33ebd58778cfb020187d20546af92c57a7b41d0007630f663a8a3b6c5c8d52c95faa37e12b9dde79d19cb6ad1afb210f1425e4ef7
6
+ metadata.gz: 6518819104f6860c5c08230b060e9dc3fa7300085cf279961b0069c5bba866c30599ca06652a4d4c533c2785f51528991b358469dd80462a7c017de44a0427f4
7
+ data.tar.gz: 4f4fa7bace1e055478a7b076d4610f7f8599cbca13c755aea935f8bff37e2f2a946cbc2d167750db2c70871830596edcfd9d943a2a2bc396f5e043d40ace6a49
data/lib/wes/data/api.rb CHANGED
@@ -5,7 +5,7 @@ require 'wes/data/api/configuration'
5
5
  module Wes
6
6
  module Data
7
7
  module API
8
- VERSION = '12.1.0'.freeze
8
+ VERSION = '12.2.0'.freeze
9
9
  end
10
10
  end
11
11
  end
@@ -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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wes-data-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.1.0
4
+ version: 12.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''