Class: Telnyx::Resources::MessagingHostedNumbers

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/messaging_hosted_numbers.rb

Instance Method Summary collapse

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.

Parameters:



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

Parameters:

  • id (String)

    Identifies the type of resource.

  • request_options (Telnyx::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



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