wes-data-api 10.8.0 → 10.9.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/model/video.rb +1 -1
- data/lib/wes/data/api/routes.rb +1 -0
- data/lib/wes/data/api/video.rb +7 -1
- data/lib/wes/data/api.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: fd0e46c320b1302fc4aefb73bce7cfb1a280540f
|
4
|
+
data.tar.gz: e7047e1bc49bdc87b4ce1d954e31ba0e89cc81ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45062d807b19f1f90c24671eeb793f828bdd41bfe476de71c471fc7ee4e7c218e206f5012d2833a89ddc1ab4648b1f0ec3cdc554e7679d6530561c652e6aeeb1
|
7
|
+
data.tar.gz: 48688675a4935e2cf6d7d0fada8fc8761f737f2303bc015771a81028f962035dfe79b60ba329a6e05e62ce5753d21362a874b13b861d671c3dcad79c3d9b3336
|
data/lib/wes/data/api/routes.rb
CHANGED
data/lib/wes/data/api/video.rb
CHANGED
@@ -14,11 +14,17 @@ module Wes
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def find(key, value)
|
17
|
-
route
|
17
|
+
route = generate_route(key, value)
|
18
18
|
attributes = client.get(route).first
|
19
19
|
attributes.nil? ? nil : model_klass.new(attributes)
|
20
20
|
end
|
21
21
|
|
22
|
+
def feed
|
23
|
+
route = [routes.videos, routes.feed].join('/')
|
24
|
+
attributes = client.get(route)
|
25
|
+
attributes.map { |a| model_klass.new(a) }
|
26
|
+
end
|
27
|
+
|
22
28
|
private
|
23
29
|
|
24
30
|
def generate_route(key, value)
|
data/lib/wes/data/api.rb
CHANGED
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: 10.
|
4
|
+
version: 10.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|