bwapi 12.0.0.pre.638 → 12.0.0.pre.641

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTU5NDE0ZjNkYTg2N2M4YWU0NzM4NmZkMDYwNjJjMGU5YWNjZTRiNg==
4
+ ZWEzMjA5Y2QwMjg0Mjc2ZjVlNmY2NDkxNmNkNjBiZjk5NWEyOGFlYQ==
5
5
  data.tar.gz: !binary |-
6
- MjE5NTIyYzg1MGU4ZTIxYWVkOTk1MDhmODQ5NTM2MmZmNDMxNTUwMQ==
6
+ YTg0ZDE1YjJlMjVhMDg2MjA3NDY5YWQ2ZjE3NzIwYzFjNjBhOTJiOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDgxOWY3ZGJlZjI2N2Y3Y2U5OTZjNjA1ZDg3ODkwMDlhZTRmZmQwODU5MTZm
10
- YTU3YjI5ZjQ0ZTUwYmY5YjM5NDM1NjVmYjdjZmMxNGNmZGJjMTBmZjllM2U4
11
- Yjk4ZjIyZDUyZmIxNmYxZTlkNTBkZjI0NGU3MzJkN2U1MjhkM2Q=
9
+ OWNjN2E3NzMxOTZhMDUzODc5MDhkNTRlNzA0YjIwOTRmYzUwM2YzMDBlOGFi
10
+ MTY4NjVkNzhhMjIwNzk3MmYzYzBlMjZhNzhkMjJhMGEwNTU5Zjg5Njg0OWQ3
11
+ ZmVkZjhjNDkyOGM0ZmEzYzMwMDcxODI4YWZlZjdlMTc2OTU5MTM=
12
12
  data.tar.gz: !binary |-
13
- Yjg5M2Q3MWNmMjY5YzQ4ODU1ZjZiZDM2MTNhYzM0YTVjODA4MTUzNjhiZmRm
14
- ODBhNTYzMDlhMDFkMDYzMWYxN2EwYTk5ZGU3YTQ5OGI3Yjc5YjhjOWI0YTdk
15
- ZTYzNmZjNDQzMjM5MGY3Y2M0YmMwYjQ3M2JhZjQ1NTkxMWVhODA=
13
+ N2U4M2Q0MTVmMmYzNzdkZDM4YWIyODYwNTYzODJhZTE2YzI2NTgwMGY0NzNk
14
+ ZTg5MDRiMTU1ZTE4ZDRlOTJiNGY2YmU2MWEyZGIyNzgzOTY5MTVhMDk3NjM0
15
+ MjMxZTM1YjZhZTlhNWQ2ZmYzYWU1ODViN2EwNWQwYjgwOWVjYWU=
@@ -24,7 +24,9 @@ require 'bwapi/client/public'
24
24
  require 'bwapi/client/query_validation'
25
25
  require 'bwapi/client/sso'
26
26
  require 'bwapi/client/test_search'
27
+ require 'bwapi/client/usage_summary'
27
28
  require 'bwapi/client/user'
29
+
28
30
  require 'faraday'
29
31
 
30
32
  module BWAPI
@@ -56,6 +58,7 @@ module BWAPI
56
58
  include BWAPI::Client::QueryValidation
57
59
  include BWAPI::Client::SSO
58
60
  include BWAPI::Client::TestSearch
61
+ include BWAPI::Client::UsageSummary
59
62
  include BWAPI::Client::User
60
63
 
61
64
  # Initializes Client
@@ -16,20 +16,6 @@ module BWAPI
16
16
  def reseller_client_mention_usage_report(client_id, opts = {})
17
17
  get "/admin/reseller/requestMentionUsageReport/#{client_id}", opts
18
18
  end
19
-
20
- # Requests reseller usage summaries
21
- #
22
- # TODO: Add parameters documentation
23
- def reseller_usage_summary
24
- get '/admin/reseller/usageSummary'
25
- end
26
-
27
- # Requests reseller usage summaries for a specific client
28
- #
29
- # TODO: Add parameters documentation
30
- def reseller_client_usage_summary(client_id)
31
- get "/admin/reseller/usageSummary/#{client_id}"
32
- end
33
19
  end
34
20
  end
35
21
  end
@@ -0,0 +1,20 @@
1
+ module BWAPI
2
+ class Client
3
+ # UsageSummary module for usageSummary endpoints
4
+ module UsageSummary
5
+ # Requests reseller usage summaries
6
+ #
7
+ # TODO: Add parameters documentation
8
+ def reseller_usage_summary(opts = {})
9
+ get 'reseller/usageSummary', opts
10
+ end
11
+
12
+ # Requests reseller usage summaries for a specific client
13
+ #
14
+ # TODO: Add parameters documentation
15
+ def reseller_client_usage_summary(client_id)
16
+ get "reseller/usageSummary/#{client_id}"
17
+ end
18
+ end
19
+ end
20
+ 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: 12.0.0.pre.638
4
+ version: 12.0.0.pre.641
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-09-11 00:00:00.000000000 Z
11
+ date: 2015-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -269,6 +269,7 @@ files:
269
269
  - lib/bwapi/client/query_validation.rb
270
270
  - lib/bwapi/client/sso.rb
271
271
  - lib/bwapi/client/test_search.rb
272
+ - lib/bwapi/client/usage_summary.rb
272
273
  - lib/bwapi/client/user.rb
273
274
  - lib/bwapi/client/user/facebook.rb
274
275
  - lib/bwapi/client/user/instagram_credentials.rb