wes-data-api 1.6.0 → 1.7.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: db94044a84df6f7db504e946d50f0a4fb766108e
4
- data.tar.gz: b98fd46df384b777745884744f1c8340eab10657
3
+ metadata.gz: 7504ca79750d4d10e2e691eb6400d284e883f790
4
+ data.tar.gz: 8e13e001807f8b68fbf070c27c6bcf60467c23ba
5
5
  SHA512:
6
- metadata.gz: b07bac0c32b2242613b12eb2d19673bc4162b967995c59078b8f137b99f08eaa227250680ff65d5d6ef686916967700ba7d4b73ca3f2baee67bb9857d38af8a2
7
- data.tar.gz: 4149cded4413eb38993c2d4fe1d912b5d2b49222b69f20dba138050b1d66a76314405441aea2e42dadbd96e2982a9900534db61fd97c55a9c4580585fbe69d9d
6
+ metadata.gz: a778fe44839f2106e31fb56959b1c10288217e3e89a5143eca714ed2ca14ea96bf85b43eaa60094030b937c2f2f2deb8eb0e1a36289ef40a09bfce8e55879f8e
7
+ data.tar.gz: 1e2985e5d3ccdfbc86af7f85f60e62e8d62a0040955e6cd80b26c6324003209eb6d6d1e1c0dd0a5ff16e11c8b667af902ead61e533ab5fb79a382e9412b7ae4a
@@ -9,6 +9,10 @@ module Wes
9
9
  @id = id
10
10
  end
11
11
 
12
+ def self.find_by_attribute(key, value)
13
+ new.find_by_attribute(key, value)
14
+ end
15
+
12
16
  def closed_submissions
13
17
  check_for_id!
14
18
  client.get "#{routes.user}/#{id}#{routes.submissions}/closed"
@@ -19,6 +23,10 @@ module Wes
19
23
  client.post("#{routes.user}/#{id}#{routes.metadata}", {})
20
24
  end
21
25
 
26
+ def find_by_attribute(key, value)
27
+ client.get("#{routes.user}#{routes.metadata}?#{key}=#{value}")
28
+ end
29
+
22
30
  def metadata
23
31
  check_for_id!
24
32
  client.get "#{routes.user}/#{id}#{routes.metadata}"
@@ -1,7 +1,7 @@
1
1
  module Wes
2
2
  module Data
3
3
  module API
4
- VERSION = "1.6.0".freeze
4
+ VERSION = "1.7.0".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wes-data-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-07 00:00:00.000000000 Z
11
+ date: 2016-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler