appnexusapi 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abcd460b5e9565ea41c0960fdf71ad3f8a082878
|
4
|
+
data.tar.gz: e2bca3f9ae62267d8dd7bad5a023fc8a399c1839
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fc78be7f3583ee7476ebdbabeed39739a4018617f2ac126e7733fb83c1a12d9ee19eb679218ddea7c9400041995f206bd5b4ce3ba02d8c9939e02b0d311cee4
|
7
|
+
data.tar.gz: 8e3c2db20e52f89b720c82758ef55567806f5d8a542f111bafcc3355053f8fc5b1102b76cf4e2da4b459a3c816942171e009e89b4a413cf03b5b5004b6146490
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class AppnexusApi::ObjectLimitService < AppnexusApi::Service
|
2
|
+
def creative_limits
|
3
|
+
get(object_type: 'creative').first
|
4
|
+
end
|
5
|
+
|
6
|
+
def profile_limits
|
7
|
+
get(object_type: 'profile').first
|
8
|
+
end
|
9
|
+
|
10
|
+
def domain_list_limits
|
11
|
+
get(object_type: 'domain_list').first
|
12
|
+
end
|
13
|
+
end
|
data/lib/appnexusapi/version.rb
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe AppnexusApi::ObjectLimitService do
|
4
|
+
let(:object_limit_service) do
|
5
|
+
AppnexusApi::ObjectLimitService.new(connection)
|
6
|
+
end
|
7
|
+
|
8
|
+
it "returns info about your current creative limits" do
|
9
|
+
creative_limits = object_limit_service.creative_limits.raw_json
|
10
|
+
expect(creative_limits["object_type"]).to eq "creative"
|
11
|
+
expect(creative_limits["limit"].to_i).to be > 0
|
12
|
+
end
|
13
|
+
|
14
|
+
it "returns info about your current profile limits" do
|
15
|
+
profile_limits = object_limit_service.profile_limits.raw_json
|
16
|
+
expect(profile_limits["object_type"]).to eq "profile"
|
17
|
+
end
|
18
|
+
|
19
|
+
it "returns info about your current domain list limits" do
|
20
|
+
domain_list_limits = object_limit_service.domain_list_limits.raw_json
|
21
|
+
expect(domain_list_limits["object_type"]).to eq "domain_list"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appnexusapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marlon Moyer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-09-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|
@@ -196,6 +196,8 @@ files:
|
|
196
196
|
- lib/appnexusapi/media_type_service.rb
|
197
197
|
- lib/appnexusapi/member_resource.rb
|
198
198
|
- lib/appnexusapi/member_service.rb
|
199
|
+
- lib/appnexusapi/object_limit_resource.rb
|
200
|
+
- lib/appnexusapi/object_limit_service.rb
|
199
201
|
- lib/appnexusapi/operating_system_extended_resource.rb
|
200
202
|
- lib/appnexusapi/operating_system_extended_service.rb
|
201
203
|
- lib/appnexusapi/operating_system_resource.rb
|
@@ -215,6 +217,7 @@ files:
|
|
215
217
|
- lib/appnexusapi/version.rb
|
216
218
|
- spec/connection_spec.rb
|
217
219
|
- spec/creative_service_spec.rb
|
220
|
+
- spec/object_limit_service_spec.rb
|
218
221
|
- spec/spec_helper.rb
|
219
222
|
homepage: https://github.com/simplifi/appnexusapi
|
220
223
|
licenses: []
|
@@ -242,4 +245,5 @@ summary: Unofficial Ruby API Wrapper for Appnexus
|
|
242
245
|
test_files:
|
243
246
|
- spec/connection_spec.rb
|
244
247
|
- spec/creative_service_spec.rb
|
248
|
+
- spec/object_limit_service_spec.rb
|
245
249
|
- spec/spec_helper.rb
|