Class: AxHub::AppsClient

Inherits:
Object
  • Object
show all
Defined in:
lib/axhub_sdk.rb

Instance Method Summary collapse

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

Raises:



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