bwapi 11.0.1.pre.596 → 11.0.1.pre.600
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 +8 -8
- data/lib/bwapi/client/admin.rb +2 -0
- data/lib/bwapi/client/admin/client.rb +15 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODcxODBmMGIwZjlmMzJkMDAwZjI5OTQ3MDVmZjgzNWM1ZjQ5MTZlMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGZjM2NlNDFlYzkzMDhjYWVlMWVmMTk1OWU2OWM5MDRkMmRjZmRiMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWE5NjVkNzEwMTk1YWFlODMyYjU3ZGEyMjI0YmI2ZTY5YTgzOTNmMzY5Y2Nk
|
10
|
+
NzM4MjRhMTcwZWE2NGU5NTVjYjI2MGY2MTc4YTdjYTUyNGQ3ZjUwOTJmZmZk
|
11
|
+
ZjIzOGE0MmM0ZGNhZjY2MjQwYjlmNzJlZDgyOWFhM2Y5Zjk5ZWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmZjNzJjZjg1YjE2MThkOGRmMjg4NWFjOGQzMmQwMzZkNDE5M2Y1YjNhOWNm
|
14
|
+
ZjUwNzc4YTFmZGNhMTg2ZTE0NzQwYjk3YzFlYWI1MTZmMDA4ZjhiMzA4MTg3
|
15
|
+
M2E4OTk3NzdhZWMwNmY3MDY3ZmNhNjNjZjU5YmM1NmI0ZGU3NTY=
|
data/lib/bwapi/client/admin.rb
CHANGED
@@ -3,6 +3,7 @@ require 'bwapi/client/admin/clients'
|
|
3
3
|
require 'bwapi/client/admin/demographics'
|
4
4
|
require 'bwapi/client/admin/reseller'
|
5
5
|
require 'bwapi/client/admin/search'
|
6
|
+
require 'bwapi/client/admin/client'
|
6
7
|
|
7
8
|
module BWAPI
|
8
9
|
class Client
|
@@ -35,6 +36,7 @@ module BWAPI
|
|
35
36
|
|
36
37
|
include BWAPI::Client::Admin::Become
|
37
38
|
include BWAPI::Client::Admin::Clients
|
39
|
+
include BWAPI::Client::Admin::Client
|
38
40
|
include BWAPI::Client::Admin::Demographics
|
39
41
|
include BWAPI::Client::Admin::Reseller
|
40
42
|
include BWAPI::Client::Admin::Search
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module BWAPI
|
2
|
+
class Client
|
3
|
+
module Admin
|
4
|
+
# Client module for admin/client endpoints
|
5
|
+
module Client
|
6
|
+
# Retrieve a breakdown of the given client's usage by query
|
7
|
+
#
|
8
|
+
# TODO: Add parameters documentation
|
9
|
+
def usage_by_query(client_id, opts = {})
|
10
|
+
get "admin/client/#{client_id}/usagebyquery", opts
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bwapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.0.1.pre.
|
4
|
+
version: 11.0.1.pre.600
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Chrisp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- lib/bwapi/client.rb
|
145
145
|
- lib/bwapi/client/admin.rb
|
146
146
|
- lib/bwapi/client/admin/become.rb
|
147
|
+
- lib/bwapi/client/admin/client.rb
|
147
148
|
- lib/bwapi/client/admin/clients.rb
|
148
149
|
- lib/bwapi/client/admin/clients/sub_clients.rb
|
149
150
|
- lib/bwapi/client/admin/clients/user_groups.rb
|