Module: Integra365::Client::Tenants
- Included in:
- Integra365::Client
- Defined in:
- lib/integra365/client/tenants.rb
Overview
Defines methods related to tenants
Instance Method Summary collapse
-
#tenant(id) ⇒ Object
(also: #get_tenant_by_id)
Get tenant by id.
-
#tenant_licenses(id) ⇒ Object
Get license consumption history for a tenant.
-
#tenant_storage(id) ⇒ Object
Get storage consumption history for a tenant.
-
#tenants(id = nil) ⇒ Object
Get all tenants.
Instance Method Details
#tenant(id) ⇒ Object Also known as: get_tenant_by_id
Get tenant by id
18 19 20 |
# File 'lib/integra365/client/tenants.rb', line 18 def tenant(id) tenants(id) end |
#tenant_licenses(id) ⇒ Object
Get license consumption history for a tenant
26 27 28 |
# File 'lib/integra365/client/tenants.rb', line 26 def tenant_licenses(id) get("Tenants/#{id}/Licenses") end |
#tenant_storage(id) ⇒ Object
Get storage consumption history for a tenant
33 34 35 |
# File 'lib/integra365/client/tenants.rb', line 33 def tenant_storage(id) get("Tenants/#{id}/Storage") end |
#tenants(id = nil) ⇒ Object
Get all tenants
9 10 11 12 13 14 15 |
# File 'lib/integra365/client/tenants.rb', line 9 def tenants(id = nil) if id get("Tenants/#{id}") else get('Tenants') end end |