Module: BWAPI::Client::Admin::Clients::SubClients
- Included in:
- BWAPI::Client::Admin
- Defined in:
- lib/bwapi/client/admin/sub_clients.rb
Instance Method Summary collapse
-
#client_sub_clients(id) ⇒ Hashie::Mash
(also: #sub_clients)
Get all sub clients.
-
#create_client_sub_client(id, opts) ⇒ Hashie::Mash
(also: #create_sub_client)
Create new subclient.
-
#get_client_sub_client(client_id, sub_client_id) ⇒ Hashie::Mash
(also: #sub_client)
Get specific sub client of client.
-
#update_client_sub_client(client_id, sub_client_id, opts) ⇒ Hashie::Mash
(also: #update_sub_client)
Update new subclient.
Instance Method Details
#client_sub_clients(id) ⇒ Hashie::Mash Also known as: sub_clients
Get all sub clients
15 16 17 |
# File 'lib/bwapi/client/admin/sub_clients.rb', line 15 def client_sub_clients id get "admin/clients/#{id}/subclient" end |
#create_client_sub_client(id, opts) ⇒ Hashie::Mash Also known as: create_sub_client
Create new subclient
62 63 64 |
# File 'lib/bwapi/client/admin/sub_clients.rb', line 62 def create_client_sub_client id, opts post "admin/clients/#{id}/subclient", opts end |
#get_client_sub_client(client_id, sub_client_id) ⇒ Hashie::Mash Also known as: sub_client
Get specific sub client of client
25 26 27 |
# File 'lib/bwapi/client/admin/sub_clients.rb', line 25 def get_client_sub_client client_id, sub_client_id get "admin/clients/#{client_id}/subclient/#{sub_client_id}" end |
#update_client_sub_client(client_id, sub_client_id, opts) ⇒ Hashie::Mash Also known as: update_sub_client
Update new subclient
100 101 102 |
# File 'lib/bwapi/client/admin/sub_clients.rb', line 100 def update_client_sub_client client_id, sub_client_id, opts put "admin/clients/#{client_id}/subclient/#{sub_client_id}", opts end |