Class: Telnyx::Resources::MessagingHostedNumbers
- Inherits:
-
Object
- Object
- Telnyx::Resources::MessagingHostedNumbers
- Defined in:
- lib/telnyx/resources/messaging_hosted_numbers.rb
Instance Method Summary collapse
-
#delete(id, request_options: {}) ⇒ Telnyx::Models::MessagingHostedNumberDeleteResponse
Delete a messaging hosted number.
-
#initialize(client:) ⇒ MessagingHostedNumbers
constructor
private
A new instance of MessagingHostedNumbers.
Constructor Details
#initialize(client:) ⇒ MessagingHostedNumbers
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 MessagingHostedNumbers.
29 30 31 |
# File 'lib/telnyx/resources/messaging_hosted_numbers.rb', line 29 def initialize(client:) @client = client end |
Instance Method Details
#delete(id, request_options: {}) ⇒ Telnyx::Models::MessagingHostedNumberDeleteResponse
Delete a messaging hosted number
17 18 19 20 21 22 23 24 |
# File 'lib/telnyx/resources/messaging_hosted_numbers.rb', line 17 def delete(id, params = {}) @client.request( method: :delete, path: ["messaging_hosted_numbers/%1$s", id], model: Telnyx::Models::MessagingHostedNumberDeleteResponse, options: params[:request_options] ) end |