wes-data-api 10.11.0 → 10.11.1
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/brief.rb +5 -5
- 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: e4a6a7995a39b1e2ae9af0b48fccd46b7f560bd6
|
4
|
+
data.tar.gz: 58f35fd921ba4a88ce144ed16b9bf7caf2f2a51c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea752fd06f01146614b91b67fbed2e6e95cb1c0490ce3770073527048f4f4a629afded8a646173c49aba5194a208ebd2c3e1365541eecb943dde7e6c92725904
|
7
|
+
data.tar.gz: 58d88a3742f7aae20e0e7ca900959ce3bc11979575e92c7a63532e95b6f7c8521945b832c1bdf98aa1177bb8bbf08595aca6b4b81eed3760430297cf988067c8
|
data/lib/wes/data/api.rb
CHANGED
data/lib/wes/data/api/brief.rb
CHANGED
@@ -17,17 +17,17 @@ module Wes
|
|
17
17
|
|
18
18
|
def brand_category(not_hidden: false)
|
19
19
|
route = format('%s/brand', routes.brief)
|
20
|
-
retrieve_brefs_for_category(route, not_hidden)
|
20
|
+
retrieve_brefs_for_category(route, not_hidden, '?')
|
21
21
|
end
|
22
22
|
|
23
23
|
def vidsy_category(user_id:, not_hidden: false)
|
24
24
|
route = format('%s/vidsy?user_id=%s', routes.brief, user_id)
|
25
|
-
retrieve_brefs_for_category(route, not_hidden)
|
25
|
+
retrieve_brefs_for_category(route, not_hidden, '&')
|
26
26
|
end
|
27
27
|
|
28
28
|
def squad_category(user_id:, not_hidden: false)
|
29
29
|
route = format('%s/squad?user_id=%s', routes.brief, user_id)
|
30
|
-
retrieve_brefs_for_category(route, not_hidden)
|
30
|
+
retrieve_brefs_for_category(route, not_hidden, '&')
|
31
31
|
end
|
32
32
|
|
33
33
|
def create(data)
|
@@ -62,8 +62,8 @@ module Wes
|
|
62
62
|
Wes::Data::API::Model::Brief
|
63
63
|
end
|
64
64
|
|
65
|
-
def retrieve_brefs_for_category(route, not_hidden)
|
66
|
-
route = format('%s
|
65
|
+
def retrieve_brefs_for_category(route, not_hidden, seperator)
|
66
|
+
route = format('%s%snot_hidden', route, seperator) if not_hidden
|
67
67
|
map_objects(client.get(route), model_klass)
|
68
68
|
end
|
69
69
|
end
|