Class: Smplkit::ManagementClient::AccountSettingsNamespace
- Inherits:
-
Object
- Object
- Smplkit::ManagementClient::AccountSettingsNamespace
- Defined in:
- lib/smplkit/management/client.rb
Instance Method Summary collapse
- #_update_account_settings(settings) ⇒ Object
- #get ⇒ Object
-
#initialize(api_client) ⇒ AccountSettingsNamespace
constructor
A new instance of AccountSettingsNamespace.
Constructor Details
#initialize(api_client) ⇒ AccountSettingsNamespace
Returns a new instance of AccountSettingsNamespace.
410 411 412 |
# File 'lib/smplkit/management/client.rb', line 410 def initialize(api_client) @api = SmplkitGeneratedClient::App::AccountApi.new(api_client) end |
Instance Method Details
#_update_account_settings(settings) ⇒ Object
419 420 421 422 423 424 425 426 427 |
# File 'lib/smplkit/management/client.rb', line 419 def _update_account_settings(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.put_account_settings(debug_body: settings_body(settings)) end from_raw(raw) end |
#get ⇒ Object
414 415 416 417 |
# File 'lib/smplkit/management/client.rb', line 414 def get raw = ErrorMapping.call { @api.get_account_settings } from_raw(raw) end |