adriver_api 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/adriver_api/api_methods.rb +1 -1
- data/lib/adriver_api/version.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: c5545d6fc918ca570d070729c9896b492c8a3c89
|
4
|
+
data.tar.gz: d2a6806e7afbc10c0a4ef4ed065de95c0d181d9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67bd50cc2791472f98f4accc6c6048df6b1ae6b819bf6632a8de366d3767fbb484d950fd786b7f65d31f92fda70032f95ec9d8399724e785b414bff84edf5815
|
7
|
+
data.tar.gz: 6cb76a020b2497493e6328a62a377e35a98cab5b0250a0d7b78eb1be8385cba059ea45b1929dc1a93e31af82c25693623231b7e48011b8c8cdb4a1769cb937fb
|
@@ -33,7 +33,7 @@ module AdriverApi
|
|
33
33
|
def adplacements(ad_id, raw: false)
|
34
34
|
response = make_request('adplacements', ad_id: ad_id)
|
35
35
|
return response if raw
|
36
|
-
[
|
36
|
+
[response.body['feed']['entry']].flatten.map{|x| {id: x['content']['adPlacement']['id'], name: x['content']['adPlacement']['name'], banners: x['content']['adPlacement']['banners'] ? x['content']['adPlacement']['banners']['href'].map{|x2| x2.split('/').last} : []} }
|
37
37
|
end
|
38
38
|
|
39
39
|
def banner(ban_id)
|
data/lib/adriver_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adriver_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Yudin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|