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)
-
#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
15 16 17 |
# File 'lib/integra365/client/tenants.rb', line 15 def tenant(id) tenants(id) end |
#tenant_licenses(id) ⇒ Object
Get license consumption history for a tenant
23 24 25 |
# File 'lib/integra365/client/tenants.rb', line 23 def tenant_licenses(id) get("Tenants/#{id}/Licenses") end |
#tenant_storage(id) ⇒ Object
Get storage consumption history for a tenant
30 31 32 |
# File 'lib/integra365/client/tenants.rb', line 30 def tenant_storage(id) get("Tenants/#{id}/Storage") end |
#tenants(id = nil) ⇒ Object
Get all tenants
8 9 10 11 12 13 14 |
# File 'lib/integra365/client/tenants.rb', line 8 def tenants(id = nil) if id get("Tenants/#{id}") else get("Tenants") end end |