Class: Smplkit::ManagementClient::AccountSettingsNamespace

Inherits:
Object
  • Object
show all
Defined in:
lib/smplkit/management/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_client) ⇒ AccountSettingsNamespace

Returns a new instance of AccountSettingsNamespace.



490
491
492
# File 'lib/smplkit/management/client.rb', line 490

def initialize(api_client)
  @api = SmplkitGeneratedClient::App::AccountApi.new(api_client)
end

Instance Method Details

#_update_account_settings(settings) ⇒ Object



499
500
501
502
503
504
505
506
507
# File 'lib/smplkit/management/client.rb', line 499

def (settings)
  # The generator pulled this op without wiring a body parameter
  # (the server accepts a free-form JSON object). The +debug_body+
  # opt is the documented escape hatch.
  raw = ErrorMapping.call do
    @api.(debug_body: settings_body(settings))
  end
  from_raw(raw)
end

#getObject



494
495
496
497
# File 'lib/smplkit/management/client.rb', line 494

def get
  raw = ErrorMapping.call { @api. }
  from_raw(raw)
end