vidsy-data-api 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vidsy/data/api/brand.rb +8 -0
- data/lib/vidsy/data/api/version.rb +1 -1
- 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: 82f8de5242d0bfcbeba4993e3202fe13cdf0db3e
|
4
|
+
data.tar.gz: 496dc630427a3a25a2300934ad0449c1b629345f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebd28d8a9e730722c8a0024dd143ea96bc0da4c16fb5437b86b23cb824a844f7342b1e95bd124c4e199564459c11b87fd2906d4515da6158a51f4985dcf6745a
|
7
|
+
data.tar.gz: 47668fa44833755573fdf0c594846609a5799664dee757f63827ba5aa76a6d7f208c2c77b1697adf2765858822b0b2f52eda438829b5149ef6d30adb442e70e5
|
data/lib/vidsy/data/api/brand.rb
CHANGED
@@ -13,6 +13,10 @@ module Vidsy
|
|
13
13
|
new.all
|
14
14
|
end
|
15
15
|
|
16
|
+
def self.find(id)
|
17
|
+
new.find id
|
18
|
+
end
|
19
|
+
|
16
20
|
def all
|
17
21
|
client.get "#{routes.brands}"
|
18
22
|
end
|
@@ -22,6 +26,10 @@ module Vidsy
|
|
22
26
|
client.get "#{routes.brand}/#{id}/#{routes.challenges}"
|
23
27
|
end
|
24
28
|
|
29
|
+
def find(id)
|
30
|
+
client.get "#{routes.brand}/#{id}"
|
31
|
+
end
|
32
|
+
|
25
33
|
private
|
26
34
|
|
27
35
|
attr_reader :id
|