Class: Telnyx::Resources::Organizations::Users::Actions

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/organizations/users/actions.rb

Overview

Operations related to users in your organization

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Actions

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Actions.

Parameters:



32
33
34
# File 'lib/telnyx/resources/organizations/users/actions.rb', line 32

def initialize(client:)
  @client = client
end

Instance Method Details

#remove(id, request_options: {}) ⇒ Telnyx::Models::Organizations::Users::ActionRemoveResponse

Deletes a user in your organization.

Parameters:

Returns:

See Also:



20
21
22
23
24
25
26
27
# File 'lib/telnyx/resources/organizations/users/actions.rb', line 20

def remove(id, params = {})
  @client.request(
    method: :post,
    path: ["organizations/users/%1$s/actions/remove", id],
    model: Telnyx::Models::Organizations::Users::ActionRemoveResponse,
    options: params[:request_options]
  )
end