Class: AxHub::AppsClient
- Inherits:
-
Object
- Object
- AxHub::AppsClient
- Defined in:
- lib/axhub_sdk.rb
Instance Method Summary collapse
- #create(**body) ⇒ Object
-
#initialize(client) ⇒ AppsClient
constructor
A new instance of AppsClient.
Constructor Details
#initialize(client) ⇒ AppsClient
Returns a new instance of AppsClient.
330 331 332 |
# File 'lib/axhub_sdk.rb', line 330 def initialize(client) @client = client end |
Instance Method Details
#create(**body) ⇒ Object
333 334 335 336 |
# File 'lib/axhub_sdk.rb', line 333 def create(**body) tenant = @client.instance_variable_get(:@default_tenant_id); raise Error.new(category: 'tenant_id_required', code: 'tenant_id_required', message: 'default tenant id is required') if tenant.nil? || tenant.empty? @client.request('appsPostApiV1TenantsByTenantIDApps', path_params: { tenantID: tenant }, body: body) end |