bwapi 1.0.7 → 1.0.8

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: 942ac94feec519e2112c21b52dfc65dfdac9b6df
4
- data.tar.gz: 7294161a237d64d20d7cbc97541afbda0c5ac553
3
+ metadata.gz: 904d506afaeb1560040595525d29f49364a7831c
4
+ data.tar.gz: fd0873c993e831a8da42484111f32fbc4c0cde78
5
5
  SHA512:
6
- metadata.gz: 7ad9451b259d78cb980b18c1861ae90f8a9eb807f816beaaa25ebc293e9455e02330221357f4df6fe0549dcaa50141a01360747449175ccd5de9dd3c33416bcd
7
- data.tar.gz: fb1fe1ad6e4db7e25ff67bf582894c7e6a9d497ff8768627b35ea3690546f42562a7ea22718b28e9f645e0ecf99c48c75a9803d20ec386afe9ab6ade1ea4410a
6
+ metadata.gz: db707dbb2ccc834bbdec1498d1ebcd1d1b0f28a2783b95732cd3fafc565ab977a96b2802ef014dfd4a09e0f63260b5c15ebba23afdd06284525cf3478ac9521b
7
+ data.tar.gz: 27baf6f493f8478829440878be6fdb40fd115774bdec3098313e25ef1e7b39a066d9cb449ac7eac397a57dfa0f2dad27f7d3e18177e7cee91d5bf5ae77d3d444
@@ -14,7 +14,7 @@ module BWAPI
14
14
  # @option opts [Integer] pageSize Results per page of results
15
15
  # @return [Hashie::Mash] All sub clients for client
16
16
  def client_sub_clients id
17
- get "admin/clients/#{id}/subclient"
17
+ get "admin/clients/#{id}/subclients"
18
18
  end
19
19
  alias :sub_clients :client_sub_clients
20
20
 
@@ -22,9 +22,9 @@ module BWAPI
22
22
  #
23
23
  # @param client_id [Integer] Id of the client
24
24
  # @param sub_client_id [Integer] Id of the sub client
25
- # @return [Hashie::Mash] Specific sub clients for client
25
+ # @return [Hashie::Mash] Specific sub client for client
26
26
  def get_client_sub_client client_id, sub_client_id
27
- get "admin/clients/#{client_id}/subclient/#{sub_client_id}"
27
+ get "admin/clients/#{client_id}/subclients/#{sub_client_id}"
28
28
  end
29
29
  alias :sub_client :get_client_sub_client
30
30
 
@@ -61,7 +61,7 @@ module BWAPI
61
61
  # @option opts [String] contactMobile The mobile number for the client
62
62
  # @return [Hashie::Mash] New sub client
63
63
  def create_client_sub_client id, opts
64
- post "admin/clients/#{id}/subclient", opts
64
+ post "admin/clients/#{id}/subclients", opts
65
65
  end
66
66
  alias :create_sub_client :create_client_sub_client
67
67
 
@@ -97,12 +97,22 @@ module BWAPI
97
97
  # @option opts [String] contactName The contact name of the client
98
98
  # @option opts [Integer] maximumSubscribedBrands The maximum subscribed brands for the client
99
99
  # @option opts [String] contactMobile The mobile number for the client
100
- # @return [Hashie::Mash] New sub client
100
+ # @return [Hashie::Mash] Edited sub client
101
101
  def update_client_sub_client client_id, sub_client_id, opts
102
- put "admin/clients/#{client_id}/subclient/#{sub_client_id}", opts
102
+ put "admin/clients/#{client_id}/subclients/#{sub_client_id}", opts
103
103
  end
104
104
  alias :update_sub_client :update_client_sub_client
105
105
 
106
+ # Delete specific sub client of client
107
+ #
108
+ # @param client_id [Integer] Id of the client
109
+ # @param sub_client_id [Integer] Id of the sub client
110
+ # @return [Hashie::Mash] Specific sub client for client
111
+ def delete_client_sub_client client_id, sub_client_id
112
+ delete "admin/clients/#{client_id}/subclients/#{sub_client_id}"
113
+ end
114
+ alias :delete_sub_client :delete_client_sub_client
115
+
106
116
  end
107
117
  end
108
118
  end
data/lib/bwapi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module BWAPI
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bwapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Chrisp
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  requirements: []
182
182
  rubyforge_project:
183
- rubygems_version: 2.1.2
183
+ rubygems_version: 2.0.5
184
184
  signing_key:
185
185
  specification_version: 4
186
186
  summary: Brandwatch v2 API Wrapper